Difficulty with VBS and website login

Soldato
Joined
25 Dec 2008
Posts
5,976
Location
Sheffield/Norwich
Hi all,

I used to have a script which would access a members-only web page, read the information there, and report back to me. I've since switched computers and can't get it to work for the life of me.
Back when it was working, I would check the box on the site asking to remember password, and I would then be able to use my script to access the page behind the log-in page directly, without needing to log in using the script. This worked regardless of whether I was currently using a web browser.
This is the script I was using (obviously "URL" is the variable with the web page URL):
Code:
Set http = CreateObject("Microsoft.XmlHttp")

	http.open "GET", URL, False
	http.send ""
	webSource = http.responseText

Now what happens is I cannot access the page directly. I keep being redirected to the login page. I've tried being logged in with all my browsers signed in at the same time, it just refuses to access the page and webSource is showing me the source code for the login page rather than the page I actually want.

Is this due to some security settings I've somehow got set up on this laptop that I don't know about, that's restricting session access only to the web browser in question? I don't know an awful lot about it, as you may have gathered, and it's quite frustrating when it was working before!

Any advice/suggestions welcome. Cheers in advance.
 
Back
Top Bottom