develooper Front page | perl.libwww | Postings from March 2001

Re: Need help with my code?

Thread Previous | Thread Next
Cormac Garvey
March 16, 2001 15:19
Re: Need help with my code?
Message ID:

Thank You very much for your help. I can now access my desired web page.

Best Regards,

>To: Cormac Garvey <>
>Subject: Re: Need help with my code?
>From: (Randal L. Schwartz)
>Date: 16 Mar 2001 11:08:55 -0800
>User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3
>MIME-Version: 1.0
>>>>>> "Cormac" == Cormac Garvey <> writes:
>Cormac>   I have run into another problem, the page I retrieved uses FRAMES, so 
>Cormac>   all I see is
>Cormac>   <frame src="
>Cormac> /ftgw/webxpress/account_listings/1BD900013E21"
>Cormac> " name="body" marginwidth=0 marginheight=0 scrolling=auto>
>Cormac> I am using libwww 5.50, how can I see file 
>Cormac> "/ftgw/webxpress/account_listings/1BD900013E21" ?
>You need to resolve that URL against the "base" URL of your response.
>Luckily, $response->base contains that. :)  And the URI module
>lets you hack a relative URL rather painlessly:
>    my $new_url = URI->new_abs(
>      "/ftgw/webxpress/account_listings/1BD900013E21", $response->base);
>Then fetch $new_url.
>Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
><> <URL:>
>Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
>See for onsite and open-enrollment Perl training!

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About