[mapserver-users] WFS Client...

Even Rouault even.rouault at spatialys.com
Thu Feb 18 13:32:53 PST 2016


Le jeudi 18 février 2016 22:01:58, Lime, Steve D (MNIT) a écrit :
> 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.

I've committed 
https://github.com/mapserver/mapserver/commit/de7ef60c4cd04ea9708a17052c48d8875f067410 
in master to enable POST logging :

$ MS_ERRORFILE=/dev/stderr MS_DEBUGLEVEL=1 mapserv 
QUERY_STRING="map=test.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities"
[Thu Feb 18 22:31:16 2016].769357 loadParams() QUERY_STRING: 
map=test.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities
[Thu Feb 18 22:31:16 2016].771312 HTTP: Starting to prepare HTTP requests.
[Thu Feb 18 22:31:16 2016].771387 HTTP request: id=0, 
http://demo.mapserver.org/cgi-bin/wfs?
[Thu Feb 18 22:31:16 2016].771486 HTTP: POST = <?xml version="1.0" ?>
<wfs:GetFeature
service="WFS"
version="1.0.0"
maxFeatures="10"
outputFormat="GML2"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" 
xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/wfs.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:gml="http://www.opengis.net/gml">
<wfs:Query typeName="continents">
<ogc:Filter>
<ogc:BBOX>
<ogc:PropertyName>Geometry</ogc:PropertyName>
<gml:Box>
<gml:coordinates>-67.572500,42.000000 -58.927500,48.500000</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter></wfs:Query>
</wfs:GetFeature>

> 
> Steve

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the mapserver-users mailing list