WMS Server - URL question on IIS
Richard Greenwood
richard.greenwood at GMAIL.COM
Tue Dec 7 14:59:48 PST 2004
On Tue, 7 Dec 2004 16:51:46 -0600, TC Haddad <tchaddad at cshore.com> wrote:
> this feels like a pretty ignorant question, but i'm not that familiar with
> IIS, and i'm hoping someone can help. we have a Win2k IIS 5 box which we
> have GetMap and GetCapabilities requests working on. now we're interested
> in masking the URL a bit so it's a bit tidier. in the WMS-How-To there is a
> ASP script provided (see below) - but where does the script go in IIS if we
> want to implement this option? Any help would be great,
> tanya
>
> MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS
> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> ASP script example from WMSServerHow-To:
>
> http://mapserver.gis.umn.edu/doc42/wms-server-howto.html#onlineresourceurl
>
> <%
> Server.ScriptTimeout = 360
> strRequest = Request.ServerVariables("QUERY_STRING")
> strURL = "http://myserver/cgi-bin/mapserv.exe?
> map=C:\Inetpub\wwwroot\WMS\mymap.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
> %>
>
Save it as a 'default.asp' in an appropriate directory.
--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
More information about the MapServer-users
mailing list