Basic Authentication

Discussion in 'ASP General' started by Chris Kennedy, Oct 31, 2005.

  1. I have an XML file which I access from a remote server like

    Set http = CreateObject("MSXML2.ServerXMLHTTP")
    http.open "GET","http://www.andrewlouis.co.uk/viewcountries.xml",false
    http.send
    strXML = http.responseText

    The real server is password protected with, I think, with basic
    authentication. How do I pass it the username and password.
     
    Chris Kennedy, Oct 31, 2005
    #1
    1. Advertising

  2. Chris Kennedy

    McKirahan Guest

    "Chris Kennedy" <> wrote in message
    news:#...
    > I have an XML file which I access from a remote server like
    >
    > Set http = CreateObject("MSXML2.ServerXMLHTTP")
    > http.open "GET","http://www.andrewlouis.co.uk/viewcountries.xml",false
    > http.send
    > strXML = http.responseText
    >
    > The real server is password protected with, I think, with basic
    > authentication. How do I pass it the username and password.



    Try:

    http.open
    "GET","http://www.andrewlouis.co.uk/viewcountries.xml",false,Username,Passwo
    rd
     
    McKirahan, Oct 31, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brett Porter
    Replies:
    2
    Views:
    781
    Andrea D'Onofrio [MSFT]
    Jan 20, 2004
  2. Mark
    Replies:
    0
    Views:
    684
  3. Brett Porter
    Replies:
    5
    Views:
    592
    Brett Porter
    Feb 3, 2004
  4. Dom
    Replies:
    0
    Views:
    473
  5. Dom
    Replies:
    0
    Views:
    518
Loading...

Share This Page