Re: programmatically capture web page as internet archive (MHT)
From: Bruce Hensley (bhensley_at_bechtel.com)
Date: 05/13/04
- Next message: Bruce Hensley: "Re: programmatically capture web page as internet archive (MHT)"
- Previous message: Bruce Hensley: "Re: programmatically capture web page as internet archive (MHT)"
- In reply to: Aaron J. Scott: "Re: programmatically capture web page as internet archive (MHT)"
- Next in thread: Michael Harris \(MVP\): "Re: programmatically capture web page as internet archive (MHT)"
- Reply: Michael Harris \(MVP\): "Re: programmatically capture web page as internet archive (MHT)"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 13 May 2004 11:09:48 -0700
Aaron,
Thanks for the idea.
We thought about this, but dismissed it on the assumption that it didn't
capture the page as it looked, that is, with all the linked images.
Was that a false assumption?
Thanks,
Bruce
"Aaron J. Scott" <ajscott@heavens-abyss.com> wrote in message
news:eNU0YuIOEHA.3744@TK2MSFTNGP11.phx.gbl...
> Use the winHTTP.WinHTTPRequest.5.1 object to call the asp page from
script
> then access the object's ResponseText property to obtain the source html
> returned by the Open method.
> Set oHTTP = CreateObject("WinHTTP.WinHTTPRequest.5.1")
> oHttp.Open("Get","your aspurl")
> sHTML = oHTTP.ResponseText
>
>
> If any Custom headers such as authentication cookies need to be included
> in the request you must add them with the SetRequestHeader method before
> calling the open method.
>
> The library is contained in %SysDir%\winhttp.dll
>
> Aaron J. Scott www.heavens-abyss.com / www2.pss-company.com
>
>
> "Bruce Hensley" <bhensley@bechtel.com> wrote in message
> news:%235peInGOEHA.4044@TK2MSFTNGP10.phx.gbl...
> > We have some ASP pages on the corporate intranet that report various
> > business statistics. We would like to capture a snapshot of these
> reports
> > each night about midnight by running a scheduled script.
> >
> > We've been unsuccessful at finding any examples of how a script can
> capture
> > a web page, preferably to an internet archive file (MHT).
> >
> > We've been able to build a kludge using Word VBA to generate an HTML
> file,
> > but it requires some cleanup after capture. We were hoping for
> something
> > that might do the equivalent of IE's File>Save As>Web Archive, but
from
> > script.
> >
> > Any help would be appreciated.
> >
> > Thanks,
> > Bruce
> >
> >
>
>
- Next message: Bruce Hensley: "Re: programmatically capture web page as internet archive (MHT)"
- Previous message: Bruce Hensley: "Re: programmatically capture web page as internet archive (MHT)"
- In reply to: Aaron J. Scott: "Re: programmatically capture web page as internet archive (MHT)"
- Next in thread: Michael Harris \(MVP\): "Re: programmatically capture web page as internet archive (MHT)"
- Reply: Michael Harris \(MVP\): "Re: programmatically capture web page as internet archive (MHT)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|