VBScript, sending GET request.

Submit to DeliciousSubmit to DiggSubmit to FacebookSubmit to Google PlusSubmit to StumbleuponSubmit to TechnoratiSubmit to LinkedInSubmit to Twitter

EDIT. I've made a few changes on 3 DEC 2012.

Sometimes VBscript just runs like crazy waiting for IE. even though the request has been sent fine.

I spent a few hours looking for a way to send a GET request.

There's plenty of these out there:

Set http = CreateObject("Microsoft.XmlHttp")

And stuff with msxml, msxml2, msxml.hmlhttpserver, msmxl2.xmlsmlxmslmslsmslrequestgetsmslwllxl and all the others.

Problem is what version will be on the windows machines you deploy it to? there are no less than a shitload of versions.

Between service packs, patches, and special versions you may/may not have installed....

http://support.microsoft.com/kb/269238

I found this works more often than not:

Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 0
IE.navigate "http://example.com/parser.php?key=" & value & "key2=" & value2
Do While IE.Busy
WScript.Sleep 200 ' see the above notice of change
Exit Do ' prevents script host from going crazy waiting for IE
loop
HTTPGet = IE.document.documentelement.outerhtml
IE.quit
Set IE = Nothing

'WScript.Echo HTTPGet 'good for debugging. shows what you got back.

 

 

If this article was at least a little helpful, how about a +1?

 

Submit to DeliciousSubmit to DiggSubmit to FacebookSubmit to Google PlusSubmit to StumbleuponSubmit to TechnoratiSubmit to LinkedInSubmit to Twitter

Found something bad?

Do your part to clean it up!

Report malicious links to:

StopBadware.org

Report phishing links to:

Google Safebrowsing - Phishing

Netcraft Anti-Phishing

Send Virus Samples to:

Clam AV Database

Microsoft Anti-Malware DB

But most importantly:

Follow THL on Twitter

 

Submitting an email to THL

Submissions welcome!

 j (a-t) techhelplist (d-o-t) com

password zips with "slick-banana"

Some other GREAT resources

StopMalvertising

MyOnlineSecurity