Difference between $mech->uri and $mech->base

--------------020109010306020608080405
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi folks,

Can someone explain the difference between $mech->uri and $mech->base?

I had assumed that after executing a $mech->get:

* $mech->uri was the full URI, including any GET arguments, after
all redirections were completed
* $mech->base would simply be the URI with the arguments and
possibly the filename part trimmed.

This is however not the case.

After getting www.foo.com/Billing, I was expecting URI to be
https://xyz.foo.com/myFoo/pgm?lots=value;of=value;parms=valu e....

Well, it wasn't. It was www.foo.com/Billing.

I just upgraded from 1.04 to 1.12. Was there a change here?

Thanks

Peter


--------------020109010306020608080405--
peter.stevens [ Mo, 06 Juni 2005 17:01 ] [ ID #826093 ]

Re: Difference between $mech->uri and $mech->base

On Mon, Jun 06, 2005 at 05:01:53PM +0200, Peter Stevens (peter.stevens [at] ch-open.ch) wrote:
> I just upgraded from 1.04 to 1.12. Was there a change here?

All changes go into Changes.

xoxo,
Andy

--
Andy Lester => andy [at] petdance.com => www.petdance.com => AIM:petdance
Andy [ Mo, 06 Juni 2005 17:03 ] [ ID #826094 ]
Perl » perl.libwww » Difference between $mech->uri and $mech->base

Vorheriges Thema: [Crypt::SSLeay] CA certificate trust verification with LWP HTTPS communication
Nächstes Thema: Bug in WWW::Mechanize or is it my fault?