well then this should do the trick
Imports System.Text
Imports System.Net
Imports System.Collections.Specialized
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim myWebClient As New WebClient
Dim myNameValueCollection As New NameValueCollection
myNameValueCollection.Add("username", "john doe")
myNameValueCollection.Add("password", "12345")
Dim responseArray As Byte() =
myWebClient.UploadValues("https://www.google.com/adsense/login.do", "POST",
myNameValueCollection)
MsgBox(Encoding.UTF8.GetString(responseArray))
End Sub
i do not have a username and password to test it but i believe it should
work
regards
Michel Posseth [MCP]
"MARTIN LANNY" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Url includes the name and password:
>
> Using above code I would submit this url:
>
> https://www.google.com/adsense/login.do?username=[E-MAIL]&password=[PASSWORD]
>
> , but google won't let me in, because they switched from GET to POST
> method.
>
> Now my whole application is stuck as I have no luck amending my code to
> use it as POST method.
>
> Please let me know how to get around this.
>
> Martin
>