Ticket #1254 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

[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

Changed 8 years ago by dmorissette

  • 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?

Changed 8 years ago by bfraser@…

  • 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
%>

Changed 8 years ago by jmckenna@…

  • status changed from new to assigned
looking at this now

Changed 8 years ago by jmckenna@…

  • status changed from assigned to closed
  • resolution set to fixed
updated asp wrapper script in wms-server doc for main and branch-4-4 CVS.
Note: See TracTickets for help on using tickets.