Re: programmatically capture web page as internet archive (MHT)

From: Bruce Hensley (bhensley_at_bechtel.com)
Date: 05/13/04


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
> >
> >
>
>



Relevant Pages

  • Re: programmatically capture web page as internet archive (MHT)
    ... >> We have some ASP pages on the corporate intranet that report various ... >> reports each night about midnight by running a scheduled script. ... >> We've been able to build a kludge using Word VBA to generate an HTML ... but it requires some cleanup after capture. ...
    (microsoft.public.scripting.wsh)
  • Re: programmatically capture web page as internet archive (MHT)
    ... > We have some ASP pages on the corporate intranet that report various ... > reports each night about midnight by running a scheduled script. ... > capture a web page, preferably to an internet archive file. ... Server side Office automation is neither recommended nor ...
    (microsoft.public.scripting.wsh)
  • Re: Best computer PC/network inventory software
    ... Neither program does everything you want, but you can usually work around things that they don't - for example, creating a script and running that script remotely on all systems to add Asset Tag info. ... Automatically capture PC info over the network, ...
    (microsoft.public.windows.server.general)
  • Re: Video and perl
    ... I have been using your script to capture images from my webcam. ... When i run my serial script it uses 100% of my CPU. ...
    (perl.beginners)
  • Re: [PHP] ob_start: Capturing STDOUT and STDERR
    ... to capture the output of a shell script and place it into a log file. ... This will capture the output buffer until the shell terminates when the ...
    (php.general)

Loading