[mapserver-users] WFS Client...

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Thu Feb 18 13:26:24 PST 2016


Let’s stop all now and think for a while.

Steve asks, as it appears in the title, about Mapserver as WFS client, so finding the requests which Mapserver is sending to outer world. Carlos and I have answered about how to log incoming requests for WFS server.

I use Fiddler as a local proxy server and configure Mapserver to use the proxy http://mapserver.org/ogc/wfs_client.html. Fiddler records all the traffic and it is very useful for debugging. BTW. the wfs client manual page tells that POST is the default but it can be changed with wfs_request_method metadata.

-Jukka Rahkonen-

Carlos Ruiz wrote:

OK. If you are doing a request to a WFS layer from an OpenLayers application, you can see the request by pressing SHIFT+CTRL+J in FireFox and enable the Network toggle button.


You will see the full request when hovering the URL


GET http://localhost/cgi-bin/accidentes?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=Estaciones%20Tren%20Ligero%20-%20Tipo&CRS=EPSG%3A4326&STYLES=&WIDTH=2025&HEIGHT=962&BBOX=20.624878406524658%2C-103.43881130218506%2C20.707404613494873%2C-103.26500415802002 [HTTP/1.1 200 OK 361ms]


________________________________
From: "Lime, Steve D (MNIT)" <Steve.Lime at state.mn.us<mailto:Steve.Lime at state.mn.us>>
To: Carlos Ruiz <boolean10001 at yahoo.com<mailto:boolean10001 at yahoo.com>>; "mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>" <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Sent: Thursday, February 18, 2016 3:06 PM
Subject: RE: [mapserver-users] WFS Client...

The WFS server is not under my control, so no access log.

From: Carlos Ruiz [mailto:boolean10001 at yahoo.com]
Sent: Thursday, February 18, 2016 3:06 PM
To: Lime, Steve D (MNIT) <Steve.Lime at state.mn.us<mailto:Steve.Lime at state.mn.us>>; mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] WFS Client...

Steve,

You can check the Apache "access.log" file and watch for the HTTP GET requests. You will find something like this:

127.0.0.1 - - [16/Dec/2015:16:59:31 -0600] "GET /cgi-bin/landsat8?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=2014&WIDTH=256&HEIGHT=256&CRS=EPSG%3A4326&STYLES=&BBOX=22.5%2C-101.25%2C33.75%2C-90 HTTP/1.1" 200 412


________________________________
From: "Lime, Steve D (MNIT)" <Steve.Lime at state.mn.us<mailto:Steve.Lime at state.mn.us>>
To: "mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>" <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Sent: Thursday, February 18, 2016 3:01 PM
Subject: [mapserver-users] WFS Client...

Hi all: Is there any way to log the request URL and POST data associated with MapServer WFS layers? That info doesn’t seem to be showing up in debug logs and it would be helpful to see exactly what is being sent to the WFS server.

Steve

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160218/bcf3c91b/attachment.htm>


More information about the MapServer-users mailing list