Simple script required to scrape authenticated website
$30-250 AUD
In Progress
Posted about 11 years ago
$30-250 AUD
Paid on delivery
Need a simple VBSCRIPT script using [login to view URL] which can download an article which requires authentication. For example, the URL [login to view URL] requires a login, i need some VBSCRIPT to programatically download the contents of this URL (I have a valid user_id and password, which i can test myself using your code) - the syntax i am using is not working for some reason:
Set oHTTP = CreateObject("MSXML2.ServerXMLHTTP.6.0")
sURL = "[login to view URL]"
sPostData = "uname=xxxx&pass=yyyy"
[login to view URL] "POST", sURL, False
[login to view URL] "Content-Type", "application/x-www-form-urlencoded"
[login to view URL] (sPostData)
[login to view URL] [login to view URL]
I am being redirected to a page to log in, so the authentication is not working, however when i drive the webpage myself (log i accordingly) it works fine. So there must be a technique i am missing. This should be very quick for anyone who knows how it should be done.