Can I pass https:// credentials in a URL string?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scubak1w1
    New Member
    • Feb 2008
    • 53

    Can I pass https:// credentials in a URL string?

    Hello,

    Can I pass https:// credentials in a URL string? I am not familar with this side of setting up servers, URL strings, etc...

    Yep, seems counterintuitiv e - but it is server-server...

    You can kind of ignore these details if you are not familar with this - I am using TileCache, part of OpenLayers, and want to get some data off a WMS Server that I have set up using MapServer, locally...

    The TileCache configuration lines would be like this

    [site_boundaries]
    type=WMSLayer
    layers=site_bou ndaries
    url=https://192.168.0.15/cgi-bin/mapserv.exe?map =c:/Inetpub/wwwroot/MapServer/WMS/strathmore_wms. map&service=WMS &transparent=tr ue?
    extension=png
    debug=off
    metaTile=true

    Running this I see a HTTP Error 401: Access Denied when I troubleshoot...


    My question is, can I build a URL something like below? What is the syntax?

    url=https://192.168.0.15/cgi-bin/mapserv.exe?map =c:/Inetpub/wwwroot/MapServer/WMS/strathmore_wms. map&service=WMS &UID=user&PWID= password&transp arent=true?

    Thanks in advance! Cheers!
    GREG...
  • harshmaul
    Recognized Expert Contributor
    • Jul 2007
    • 490

    #2
    Depending on the server side language you use you can pass details like that. however that question is more suited to the serverside forums. so which ever serverside language you use you should ask there!

    but to get you started

    php
    Code:
    $_GET["qsName"]
    csharp
    Code:
    request.QueryString["qsName"]

    Comment

    Working...