Re: How to perform an HTTP download using a script ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have good results from using the microsoft XML objects.
I have tested this as a .vbs

'**sample code**

Dim objXMLHTTP
Dim strPage

Set objXMLHTTP = CreateObject("MSXML2.serverXMLHTTP.4.0")

objXMLHTTP.Open "GET", "http://www.microsoft.com";, False
objXMLHTTP.Send

strPage = objXMLHTTP.responseText

MsgBox(strPage)

'**end sample code**

Have Fun.

Adam Piggott wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Serge Wautier wrote:
> > Hi All,
> >
> > How do I download an HTML page using a script ?
> > The Microsoft Internet Transfer Control seems to be an option but it isn't
> > very well documented in MSDN. Therefore I assumed there must be a preferred
> > way (which I didn't find so far).
>
> Give cURL a go, I've used it in all sorts of applications and get on well
> with it.
>
> http://curl.haxx.se/
>
> HTH
> - --
> Adam Piggott, Proprietor, Proactive Services (Computing).
> http://www.proactiveservices.co.uk/
>
> Please replace dot invalid with dot uk to email me.
> Apply personally for PGP public key.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (MingW32)
>
> iD8DBQFDQO9z7uRVdtPsXDkRAuyIAJwKDtV7aXQdI+jrYkXYocBBPu/TzACeMOgH
> Ueu3bh+BnOrd2FEb9qcWKWM=
> =a1x7
> -----END PGP SIGNATURE-----

.