<p>From specification </p>
<p>When using the HTTP POST method, the content type for XML encoded WFS requests must be set to text/xml.  When using the HTTP POST method, the content type for KVP encoded WFS requests must be set to application/x-www-form-urlencoded and the content of the document must be equivalent to the query string of an HTTP GET request.  That is, the content must be equivalent to the string that follows the ‘?’ character in a URL encoded GET request.  Of course, the content must be encoded [10] to protect special characters.</p>

<p>Then I will try to split the url after ? Encode the end of the url to protect special character, set application/x-www-form-urlencoded and the end url to the post parameter....</p>
<p>And if not working i will try the xml form...</p>
<div class="gmail_quote">Le 19 juin 2012 19:40, "Even Rouault" <<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le mardi 19 juin 2012 17:06:17, xavier lhomme a écrit :<br>
> Hi<br>
> I tried to submit a POST request with the KVP form to an ArcGIS Server 10.0<br>
> but in response I've got an XML Parsing error.<br>
><br>
>  Do I need to translate the KVP form of the url into an XML form ?<br>
<br>
Yes, the content you send in a POST is different from the KVP of a GET. There<br>
are examples (if I remember correctly) in the OGC WFS spec.<br>
<br>
><br>
> xav<br>
><br>
><br>
> 2012/6/12 Even Rouault <<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>><br>
><br>
> > Le mardi 12 juin 2012 14:38:05, xavier lhomme a écrit :<br>
> > > Hello<br>
> > ><br>
> > >  I'm requesting a WFS source with a very long request. The URI<br>
> > >  generated<br>
> ><br>
> > by<br>
> ><br>
> > > the WFS driver is very long (more than 2048). In return I' ve got an<br>
> > > HTTP error code 414.<br>
> > ><br>
> > >  OGRWFSDataSource::HTTPFetch function should be protected against very<br>
> ><br>
> > long<br>
> ><br>
> > > URI and switch between a GET request to a POST request.<br>
> ><br>
> > Patch welcome and public server for testing :-)<br>
> ><br>
> > > best regards<br>
> > > xavier<br>
</blockquote></div>