Hi there.. im sort of new posting, but not reading here!
I need help traying to log in to a forum to send a message on a given post.. but so far i just can't get loged in..
the code i have tried but does not work:
Any ideas on how i can proceed?
Many thanks!
I need help traying to log in to a forum to send a message on a given post.. but so far i just can't get loged in..
the code i have tried but does not work:
Code:
Dim objHttp As Object Dim URL As String
Set objHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
' SOLOCHOLLOS
URL = "http://m.forocoches.com/foro/misc.php?do=page&template=ident"
'vb_login_username
'vb_login_password
With objHttp
.Open "GET", URL, False
'you can even get out into the WWW through a proxy
'.setProxy 2, "<your proxy server>:<port>", ""
'.setcredentials "<user>", "<password>", 1
.SetRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
.SetRequestHeader "Content-type", "application/x-www-form-urlencoded"
.Send ("vb_login_username=USERNAME&vb_login_password=PASSWORD")
End With
' If you want to see the result uncomment the following line
Cells(1, 2).Value = objHttp.ResponseText
Any ideas on how i can proceed?
Many thanks!