ASP wrapper and HTTP GET requests

Richard Greenwood richard.greenwood at GMAIL.COM
Tue Feb 22 19:57:10 EST 2005


On Tue, 22 Feb 2005 18:27:57 -0500, Kralidis,Tom [Burlington]
<Tom.Kralidis at ec.gc.ca> wrote:
> Hi,
>
> There seems to be a problem with the ASP wrapper example provided for
> hiding the mapfile from:
>
> http://mapserver.gis.umn.edu/doc44/wms-server-howto.html#onlineresourceu
> rl
>
> I've filed a bug against this:
>
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1253
>
> The wrapper script doesn't support POST requests.
>
> Are there any ASP gurus out there who can tweak the example so that it
> can recognize when a POST request comes in and pass it as such?

This works for aspx (.NET) in C#, I'm not sure if it will be backward
compatable.

string pidn = (Request.ServerVariables["REQUEST_METHOD"] == "GET") ?
Request.QueryString["pidn"] : Request.Form["pidn"];

I think VB should look something like:

dim pidn
if Request.ServerVariables["REQUEST_METHOD"] = "GET" then
   Request.QueryString["pidn"]
else
   Request.Form["pidn"]
endif

Regards,
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com



More information about the mapserver-users mailing list