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?
Printable View
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?
Examine the status property of the HttpWebResponse, it should return a 401 if the password was invalid. (HTTP 401 = unauthorized)
Thought so like this
Question is how do I send variables to this site ie my username and password?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
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>