forradalom has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing a proxy-type script which requests an HTML document, parses it using a subclass of HTML::Filter, runs the textual portion through a filter, and sends it back out. Works fine, but for one thing: since the base URL is my own site, not the document's, the relative URLS in links and images don't work.

I've tried sending Content-Base and Content-Location headers and I've tried using the URI module to formulate absolute URLs and substitute them in the start tag callback routine, but I'm obviously not doing something right.

Any suggestions?

Forradalom

Replies are listed 'Best First'.
Re: Relative-absolute URLS on the fly
by merlyn (Sage) on Oct 20, 2000 at 19:11 UTC