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

Re: Need help with my code?

Thread Previous | Thread Next
From:
Cormac Garvey
Date:
March 16, 2001 15:19
Subject:
Re: Need help with my code?
Message ID:
200103162319.RAA11746@syseng.hstc.necsyl.com

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

Best Regards,
Cormac.

>To: Cormac Garvey <a10coga@hstc.necsyl.com>
>Cc: dfaraldo@nocpulse.com, ejs@bfd.com, libwww@perl.org
>Subject: Re: Need help with my code?
>From: merlyn@stonehenge.com (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 <a10coga@hstc.necsyl.com> 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
><merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
>Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
>See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About