Forum Moderators: open
Dim myWebClient As New System.Net.WebClient()myWebClient.Headers.Add("Content-Type", "application/x-www-form-urlencoded")
Dim postQuery As Byte() = System.Text.Encoding.ASCII.GetBytes("action=login&username=marcel&password=password")
Dim theResponse As Byte() = myWebClient.UploadData("http://www.webmasterworld.com/login.cgi", "POST", postQuery )Response.Write(System.Text.Encoding.ASCII.GetString(theResponse))
* this will post to the WebmasterWorld login form, and you should temporarily see that you are logged in. (if you use the correct credentials of course :) )