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

Stephen Woodbridge woodbri at swoodbridge.com
Thu Oct 2 14:23:10 PDT 2014


On 10/2/2014 4:47 PM, Even Rouault wrote:
>
>> So does this change the default message from like:
>>
>> http://example.com/cgi-bin/mapserv
>> No query information to decode. QUERY_STRING is set, but empty.
>
> No, it is in a different code path.
>
>>
>> I think this should be kept the same and that the above message only get
>> displayed if it is run from the commandline. Which begs the question
>> what happens if it is called from a shell wrapper script?
>
> If REQUEST_METHOD=GET is defined but QUERY_STRING not, then you have the "No
> query information to decode. QUERY_STRING not set." message with Content-
> Type=text/html header.
>
> If REQUEST_METHOD=GET is not defined, then you have
>      "This script can only be used to decode form results and
>      should be initiated as a CGI process via a httpd server.
>      For other options please try using the --help switch."
> and no HTTP header.
>
> I just added the last line. If it causes more trouble than anything, I can
> remove it...

Ok thanks! Works for me :)

>> -Steve W
>>
>>>> -jeff
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> mapserver-dev mailing list
>>>> mapserver-dev at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>



More information about the mapserver-dev mailing list