Results 1 to 4 of 4

Thread: [2005] htaccess responce

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    [2005] htaccess responce

    I'm getting my application to log into my website which is behind a .htaccess protected directory... however how do I get the response in VB if the password is spelt wrong etc..... so my application can continue?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] htaccess responce

    Examine the status property of the HttpWebResponse, it should return a 401 if the password was invalid. (HTTP 401 = unauthorized)

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    Re: [2005] htaccess responce

    Thought so like this

    Code:
     Dim wr As Net.HttpWebRequest = Net.WebRequest.Create("http://www.google.com")
            Dim res As Net.HttpWebResponse = wr.GetResponse
            Dim br As New IO.StreamReader(res.GetResponseStream)
            Dim output As String = br.ReadToEnd
    Question is how do I send variables to this site ie my username and password?

  4. #4
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    607

    Re: [2005] htaccess responce

    Is your site in asp.net and is your site using the SQL membership or your custom membership that inherits from the default membership class>

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