Last post Mar 20, 2014 05:51 AM by Ericzh
Mar 19, 2014 10:42 AM|tgavin8|LINK
Hi! I have 2 hosting providers (GoDaddy do not allow full privileges). I need to be able to pass in the URL information to my admin site (together with the User Name and Password) who is hosted with another provider to carry out some actions that GoDaddy
was blocking. I have tried username:Password@MySiteURL to no avail. The site itself has forms authentication active (from web config file):
<user name="<MyUserName>" password="<MyPassword>"/>
I have also tried using httpwebrequest
Dim webRequest As HttpWebRequest = TryCast(Net.WebRequest.Create("<MyURL">), HttpWebRequest)
webRequest.Method = "POST"
webRequest.ContentLength = 0
Dim auth As String = "<My User Name" & ":" & "<My Password>"
auth = Convert.ToBase64String(Encoding.Default.GetBytes(auth))
webRequest.Headers("Authorization") = "Basic " & auth
Dim requestWriter As New StreamWriter(webRequest.GetRequestStream())
Is there an easy way of passing in the URL to get round the login page? Thanks!
Mar 20, 2014 05:51 AM|Ericzh|LINK
Hope below links help: