SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot manic's Avatar
    Join Date
    Dec 2001
    Location
    uk
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Having problems connecting to a secured XML document

    Hi,

    I'm still fairly new to .net so please bare with me.

    I have loads of XML resources which are all secured mostly with basic authentication.

    With classic ASP I had no issues connecting and receiving the details with the xmlhttp object. However I've been googling this to death and found that asp.net doesn't support xmlhttp anymore ... so I went digging to find what had replaced it and found the xmltextreader. OK cool, that looks good however - I can't find anything on how to enter security details?

    Does anyone know how to accomplish this or am I barking up the wrong tree with the xmltextreader?

    All I want is something like:

    ConnectToXML("user", "pass", "URL")
    load the xml doc and read through it.

    Should be easy but asp.net doesn't like me yet.
    Don't you just hate it when it works first time.

  2. #2
    SitePoint Wizard
    Join Date
    Feb 2007
    Posts
    1,274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use the WebClient class. It has a Credentials property.

  3. #3
    SitePoint Zealot manic's Avatar
    Join Date
    Dec 2001
    Location
    uk
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice one, thanks.
    Don't you just hate it when it works first time.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •