[mapserver-dev] New env. var. to make it easier to test/debug web services

Even Rouault even.rouault at spatialys.com
Thu Oct 2 11:44:12 PDT 2014


Hi,

I always get annoyed when running mapserv from command line and wanting to test/debug WMS, WFS, etc... without launching mapserv as a CGI, because the HTTP headers get emitted and thus 
produce an invalid PNG or GML.
So I've pushed in master a small enhancement. If MS_HTTP_HEADER=NO is set as environmenet variable, the HTTP headers are not emitted.

So now you can do things like :

MS_HTTP_HEADER=NO mapserv QUERY_STRING="map=test.map&SERVICE=WMS&..." > out.png && display out.png
MS_HTTP_HEADER=NO mapserv QUERY_STRING="map=test.map&SERVICE=WFS&..."  | xmllint -noout -

Even

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


More information about the mapserver-dev mailing list