Results 1 to 2 of 2

Thread: HTTP Authorization Question .net 3.5

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    HTTP Authorization Question .net 3.5

    I know there's a lot of documentation our there about authorizaiton so I don't know if I'm missing something obvious, but this is
    returning 'Bad Request (400)'. Does anyone have any ideas, or a better way to do this?



    objHttpWebRequest.Method = "POST"
    objHttpWebRequest.ContentType = "text/xml"

    Dim authInfo As String
    authInfo = username + ":" + password
    authInfo = Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(authInfo))
    objHttpWebRequest.Headers("Authorization") = "Basic " + authInfo

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: HTTP Authorization Question .net 3.5

    You can use fiddler to view the requests and responses
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

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



Click Here to Expand Forum to Full Width