<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>I was using POST for a lot of my communications between OL and a ColdFusion server, but discovered that POST requests seemed to hit a limit on the length of the URL, whereas the GET was more tolerant. Here is an example that failed with a POST, but succeeded with a GET:</DIV>
<DIV>&nbsp;</DIV>
<DIV>var mgatexy = "<A href="http://web-cf8dev.agriquality.co.nz/agribasemapdata/indexpage.cfm?mode=maingate&amp;farmid">http://web-cf8dev.agriquality.co.nz/agribasemapdata/indexpage.cfm?mode=maingate&amp;farmid</A>=" + farmid + "&amp;easting=" + easting + "&amp;northing=" + northing + "&amp;lat=" + latitude + "&amp;long=" + longitude;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var request = OpenLayers.Request.GET({<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: mgatexy,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callback: setHTML3<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert Sanson<BR><BR>&gt;&gt;&gt; &lt;bartvde@osgis.nl&gt; 10/01/2009 1:03 a.m. &gt;&gt;&gt;<BR>Hey Tim,<BR><BR>it just came to my mind since I wanted to port all of my application's WFS<BR>requests to use Protocol.WFS. I use quite a bit of GET requests where POST<BR>is not needed.<BR><BR>But you're right, why not use POST all the time.<BR><BR>Best regards,<BR>Bart<BR><BR>&gt; Hey-<BR>&gt;<BR>&gt; bartvde@osgis.nl wrote:<BR>&gt;&gt; Hi list,<BR>&gt;&gt;<BR>&gt;&gt; are there any plans to support HTTP GET in Protocol.WFS?<BR>&gt;<BR>&gt; It would be nice to have a property that let you decide if you always<BR>&gt; wanted GET.&nbsp; The drawback, of course, is when you've got a filter that<BR>&gt; serializes (+ rest of url) to 2083 chars.<BR>&gt;<BR>&gt; We're you envisioning a property, or some logic that tried to determine<BR>&gt; if POST was necessary?<BR>&gt;<BR>&gt; Also, it's probably worth asking why it makes a difference (aside from<BR>&gt; being gross that we have to POST GetFeature).<BR>&gt;<BR>&gt; Tim<BR>&gt;<BR>&gt;&gt;<BR>&gt;&gt; Best regards,<BR>&gt;&gt; Bart<BR>&gt;&gt;<BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; Dev mailing list<BR>&gt;&gt; Dev@openlayers.org<BR>&gt;&gt; <A href="http://openlayers.org/mailman/listinfo/dev">http://openlayers.org/mailman/listinfo/dev</A><BR>&gt;<BR>&gt;<BR>&gt; --<BR>&gt; Tim Schaub<BR>&gt; OpenGeo - <A href="http://opengeo.org">http://opengeo.org</A><BR>&gt; Expert service straight from the developers.<BR>&gt; _______________________________________________<BR>&gt; Dev mailing list<BR>&gt; Dev@openlayers.org<BR>&gt; <A href="http://openlayers.org/mailman/listinfo/dev">http://openlayers.org/mailman/listinfo/dev</A><BR>&gt;<BR><BR><BR>_______________________________________________<BR>Dev mailing list<BR>Dev@openlayers.org<BR><A href="http://openlayers.org/mailman/listinfo/dev">http://openlayers.org/mailman/listinfo/dev</A><BR><BR></DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc.  </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>