W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

Re: Libwww query.

From: Shivananda Somayaji <somayaji@lgsi.co.in>
Date: Wed, 23 Aug 2000 12:12:30 -0400
Message-ID: <39A3F7EE.702B5C63@lgsi.co.in>
To: www-lib@w3.org
Actually, I start with downloading a URL, say www.washingtonpost.com and I get
the html source for the page. I have to parse that page to look for the jpgs,
gifs, mpegs in the page and download them individually. I use HTLoadToFile
with the URL of those jpgs,gifs etc. which are actually extracted as HTAnchor
from the main page.I convert this Anchor to char * before passing to
HTLoadToFile.
For Example,
When I download www.washingtonpost.com using
HTLoadToFile("http://www.washingtonpost.com",request,filename),
I get the html file for washingtonpost.com. Now I parse that html file to get
the list of all gif, jpg, mpeg URL's and want to download them individually, so
that page is downloaded ASIS.
If I now use, say
HTLoadToFile("http://www.washingtonpost.com/xyz.gif",request,filename), I don't
get anything. Here, assume that http://www.washingtonpost.com/xyz.gif to be a
part of the index.html page.

Any suggestions ?

Shivananda

> Re: Libwww query.
>
> From: Peter Stamfest (peter.stamfest@eunet.at)
> Date: Wed, Aug 23 2000
>
>    * Previous message: Jim Marshall: "Re: Libwww query."
>    * In reply to: Jim Marshall: "Re: Libwww query."
>    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>    * Other mail archives: [this mailing list] [other W3C mailing lists]
>    * Mail actions: [ respond to this message ] [ mail a new topic ]
>
>   ------------------------------------------------------------------------
>
> Date: Wed, 23 Aug 2000 15:40:05 +0200 (CEST)
> From: Peter Stamfest <peter.stamfest@eunet.at>
> To: www-lib@w3.org
> cc: somayaji@lgsi.co.in
> Message-ID: <Pine.LNX.4.21.0008231537340.1247-100000@peter.stamf.pr.at>
> Subject: Re: Libwww query.
>
> On Wed, 23 Aug 2000, Jim Marshall wrote:
>
> > Date: Wed, 23 Aug 2000 13:20:14 GMT
> > From: Jim Marshall <jim_marshall2268@hotmail.com>
> > To: somayaji@lgsi.co.in, www-lib@w3.org
> > Subject: Re: Libwww query.
> > Resent-Date: Wed, 23 Aug 2000 09:20:56 -0400 (EDT)
> > Resent-From: www-lib@w3.org
> >
> > What are you passing to HTLoadToFile?  I haven't tried the file types you
> > mention, but I've done other types (zip, gz, exe, so, dll) without any
> > problems.
> >
> > -Jim
> >
> >
> > >From: "Shivananda Somayaji" <somayaji@lgsi.co.in>
> > >To: www-lib@w3.org
> > >Subject: Libwww query.
> > >Date: Tue, 22 Aug 2000 18:54:23 -0400
> > >
> > >Hello,
> > >
> > >Is there a way to load a gif or mpeg or jpg into a local file ? I am
> > >trying to write an application to do that. If I use HTLoadToFile, it
> > >doesn't seem to do the job. It only gets me the source file (html).
> > >Kindly give suggestions.
>
> Seems you download a page containing a _link_ to the file (anchor, img
> tags) you are actually interested in. You should download the URL you are
> _really_ interested in instead...
>
> peter
>
> > >
> > >Thanks
> > >Shivananda.
> > >
> > >
> >
> > ________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> >
>
> --
> Peter Stamfest                    UNIX, Networking & Computing Consultant
> Tel: +43/699/20711205             Software Development
> E-Mail: ps@psncc.at               WWW: http://www.psncc.at/
>         peter.stamfest@eunet.at
>
>   ------------------------------------------------------------------------
>
>    * Previous message: Jim Marshall: "Re: Libwww query."
>    * In reply to: Jim Marshall: "Re: Libwww query."
>    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>    * Other mail archives: [this mailing list] [other W3C mailing lists]
>    * Mail actions: [ respond to this message ] [ mail a new topic ]
Received on Wednesday, 23 August 2000 19:27:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:37 GMT