Opened 19 years ago

Closed 19 years ago

#1254 closed defect (fixed)

[Doc] WMS ASP wrapper script example does not support POST

Reported by: tomkralidis Owned by: jmckenna@…
Priority: high Milestone:
Component: Documentation - MapServer Version: unspecified
Severity: normal Keywords:
Cc: bfraser@…

Description

On Page:

http://mapserver.gis.umn.edu/doc/wms-server-howto.html#onlineresourceurl

..the ASP wrapper example only handles GET type requests, not POST.

We need to update this code snippet to correctly handle GET and POST, and then
update the documentation.

Change History (4)

comment:1 by dmorissette, 19 years ago

Cc: dmorissette@… added
Owner: changed from kgeurts@… to jmckenna@…
Reassigned bug to Jeff who is the maintainer of this howto.

Tom: Can you please paste the new script in this bug?

comment:2 by bfraser@…, 19 years ago

Cc: bfraser@… added
The script below, while functional, is intended only as an example of using ASP 
to filter Mapserver requests.  Using ASP in a production WMS server will likely 
require additional ASP especially in the area of error handling and setting 
timeouts.

<%
    Server.ScriptTimeout = 360
        
    Select Case Request.ServerVariables("REQUEST_METHOD")
      Case "GET"  strRequest = Request.QueryString
      Case "POST" strRequest = Request.Form
    End Select
    
    strURL = "http://myserver/cgi-bin/mapserv.exe?
map=C:\Inetpub\wwwroot\workshop\itasca.map&" & strRequest
    
    Dim objHTTP
    Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
    objHTTP.open "GET", strURL, false
    objHTTP.send ""
    
    Response.ContentType = objHTTP.getResponseHeader("content-type")
    Response.BinaryWrite objHTTP.responseBody
    
    Set objHTTP = Nothing
%>

comment:3 by jmckenna@…, 19 years ago

Status: newassigned
looking at this now

comment:4 by jmckenna@…, 19 years ago

Resolution: fixed
Status: assignedclosed
updated asp wrapper script in wms-server doc for main and branch-4-4 CVS.
Note: See TracTickets for help on using tickets.