it's a brain-buster the first time you look at it but this is where i
learned *a* way to do it:
http://www.samag.com/documents/s=1276/sam04030013/
On Tuesday, August 27, 2002, at 06:09 , Werner Schalk wrote:
> Hello,
>
> maybe this is off-topic but
> I'm sure people know how to help
> me:
>
> I do print a website to stdout
> using libwww and it works great
> but the problem is that self-referencing
> urls must be replaced the full url
> of the site I just requested.
> Like I get www.google.com but the
> images and links of this site to
> link to myself but not to www.google.com.
> The problem with this is that in a
> third-party app which uses the
> output of libwww links and references
> are made to localhost but not to
> www.google.com...
>
> For instance www.google.com contains this line:
> <img src=images/hp1.gif width=50 height=78 alt="">
>
> It should be altered to:
> <img src=http://www.google.com/images/hp1.gif width=50 height=78 alt="">
>
> Is there a way to do this with
> libwww or even with sed?
>
> Bye and thanks,
> Werner.
>