[Users] WFS GET vs POST request
Andreas Hocevar
ahocevar at opengeo.org
Fri Feb 24 14:05:07 CET 2012
Hi,
OpenLayers.Protocol.WFS does not do GET requests. If you just want to
do a GetFeature request, you can use Protocol.HTTP instead.
Andreas.
On Fri, Feb 24, 2012 at 12:02 PM, Espen Isaksen <espen.isaksen at gmail.com> wrote:
> I have tried for a while to find the answer to this question, but no
> luck unfortunately.
>
> I have a WFS request running from my code:
>
>
> var protocol = new OpenLayers.Protocol.WFS({
> url: 'http://localhost/wfs',
> version: "1.0.0",
> featureType: "lib_matrikkel_flate",
> featureNS: "",
> srsName: "EPSG:32633"
> //,format: new OpenLayers.Format.GeoJSON()
> });
>
> var proxyProtocol = new GeoExt.data.ProtocolProxy({
> protocol: protocol
> });
>
> var store = new GeoExt.data.FeatureStore({
> layer: propertyBorder,
> proxy: proxyProtocol,
> autoLoad: true
> });
>
>
> This runs a POST request. I would like it to do a GET request instead.
> Setting method: "GET" on the ProtocolProxy does not work. How can I
> change from a POST request to a GET request?
>
> Espen
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list