Dear List,<div><br></div><div>Is there any possible way of making a raw Post request using Openlayers.Request to a Wfs service?</div><div><br></div><div>-----------</div><div><div id="sb2-L484" class=""><span class=""> var request= OpenLayers.Request.POST({
</span></div><div id="sb2-L485" class=""><span class=""> url: "gis_server/wfs",
</span></div><div id="sb2-L486" class=""><span class="">
data:'<wfs:GetFeature service="WFS" version="1.0.0"
xmlns:wfs="gis_server/wfs" xmlns:topp=gis_server_Url+"/wfs">
<wfs:Query typeName="topp:layer"/> </wfs:GetFeature>',
</span></div><div id="sb2-L487" class=""><span class=""> headers: {
</span></div><div id="sb2-L488" class=""><span class=""> "Content-Type": "text/javascript"
</span></div><div id="sb2-L489" class=""><span class=""> },
</span></div><div id="sb2-L490" class=""><span class=""> success: function(data){alert('success');}</span></div><div id="sb2-L491" class=""><span class=""> });
</span></div><div id="sb2-L492" class=""><span class=""> request.send(); </span></div><div>-------------</div><div><br></div><div>The response is required in JSON format, Have been trying a basic XML document to get things running but it seems the requests never reach Geoserver, The reason for coming to POST method is that the application has been making spatial filters which make the url length out of browser`s limit.</div>
<div><br></div><div>regards,</div><div>Imran</div>-- <br>I.R<br>
</div>