in reply to Read and Display HTML - pages with CGI-script.

I know of no serious module that could resolve a relative URL into a full URL. There are millions of web sites; how would you choose which one to use? Would index.pl?node=100 apply to Perl Monks, Everything 2, or Anime-Fu?

Once you answer that question, it's not difficult to write a bit of code to absolutify relative URIs. I suggest the URI module. If there's no scheme and hostname, add the default.

Replies are listed 'Best First'.
Re: Re: Read and Display HTML - pages with CGI-script.
by simonm (Vicar) on Sep 20, 2003 at 20:27 UTC
    For what it's worth, the URL in this case seems to be hard-coded in the HTTP get line -- the OP's script is just proxying for this one page.