I have used the "Microsoft.XMLHTTP" object in ASP numerous times, but I
can't get it to work in a VBS script to save my life.

Does anyone have an example of loading a web page from a VBS file?

Thanks!

Re: Microsoft.XMLHTTP by Mark

Mark
Wed Jul 25 15:54:24 CDT 2007

On Wed, 25 Jul 2007 15:28:37 -0500, Dave Navarro wrote:

> I have used the "Microsoft.XMLHTTP" object in ASP numerous times, but I
> can't get it to work in a VBS script to save my life.
>
> Does anyone have an example of loading a web page from a VBS file?

Dave,

== works for a CHM, almost the same as a web page :) ==
This VBS script will open the dropped CHM file and dump its TOC to IE
http://www.tlviewer.org/chm/chmdumptoc.vbs.txt

--
Mark

Re: Microsoft.XMLHTTP by Dave

Dave
Wed Jul 25 16:38:19 CDT 2007

Thanks. I found what I needed by searching Google Groups instead of
Google. This returns the headers for a web site which is all I need:

Function httpHead(Url)

Set http = CreateObject("Microsoft.XMLHTTP")

http.Open "HEAD", Url, False
http.Send

httpHead = http.getAllResponseHeaders

Set http = Nothing

End Function


In article <46a7b87f$0$30600$4c368faf@roadrunner.com>,
tlviewer@VISTAyahoo.com says...
> On Wed, 25 Jul 2007 15:28:37 -0500, Dave Navarro wrote:
>
> > I have used the "Microsoft.XMLHTTP" object in ASP numerous times, but I
> > can't get it to work in a VBS script to save my life.
> >
> > Does anyone have an example of loading a web page from a VBS file?
>
> Dave,
>
> == works for a CHM, almost the same as a web page :) ==
> This VBS script will open the dropped CHM file and dump its TOC to IE
> http://www.tlviewer.org/chm/chmdumptoc.vbs.txt