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

Jeff McKenna jmckenna at gatewaygeomatics.com
Thu Oct 2 11:55:15 PDT 2014


Isn't that the exact same as executing 'mapserv -nh QUERY_STRING='  ??

-jeff




On 2014-10-02 3:44 PM, Even Rouault wrote:
> 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
>




More information about the mapserver-dev mailing list