Authentication with HttpWebRequest

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tosco

    #1

    Authentication with HttpWebRequest

    I used to use WebBrowser in VB6, and now I want to learn how to use
    WebRequest in vb.net, but I'm having 2 problems.


    1) Is it normal that the automatic redirection doesn't work when the
    page contains this?
    <body onLoad="locatio n='http://www.SiteName.co m/index.jsp'"></body>

    If I use WebBrowser.Navi gate in VB6 with this redirection works.


    2) How do I get the content of a page after the authentication done
    like this?
    https://www.sitename.co m/login.jsp?Usern ame=xxx&Passwor d=yyy"

    If I use WebBrowser.Navi gate in VB6 with this URI to login, then
    WebBrowser.Navi gate again with other URIs to receive the pages of the
    user xxx, everything works fine:

    But if I use HttpWebRequest. Create with this URI to login, then
    HttpWebRequest. Create again with other URIs I get a page telling me
    that I'm not signed in.

    I don't know how the authentication is works, I only know that I
    cannot use Credentials because in that website it doesn't work (I
    don't know why, I was told in another post, but with no explanation).

    Perhaps the second HttpWebRequest. Create doesn't send back information
    about the current session gathered on the first one?

  • Mr. Arnold

    #2
    Re: Authentication with HttpWebRequest


    <snipped>

    You may want to post to MS.Public.dotne t.framework.asp net or Webforms NG.


    Comment

    • Tosco

      #3
      Re: Authentication with HttpWebRequest

      Webforms?
      What does it mean?
      I didn't find any newsgroup containing "webforms".

      Comment

      Working...