Log in and post on VB Forum

uniextra

New Member
Joined
Jan 16, 2017
Messages
1
Hi there.. im sort of new posting, but not reading here! :ROFLMAO:

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!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,215,263
Messages
6,123,957
Members
449,135
Latest member
jcschafer209

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top