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: | |
---|---|---|---|
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:2 by , 19 years ago
Cc: | 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:4 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
updated asp wrapper script in wms-server doc for main and branch-4-4 CVS.
Note:
See TracTickets
for help on using tickets.