Hi,

I have problem using the requests_redirectable method
from UserAgent. follow the doc,i tried 

my $url ='http://www.pulse24.com';
push @{ $br->requests_redirectable } 'GET';
my $req = GET ($url,@headers);
$req->referer($url);            
my $resp = $br->request($req);
print $resp->as_string;

part of result:

<body bgcolor=black alink=black vlink=black>
<font color=black>redirecting to<a
href="http://www.pulse24.com/Front_Page/page.asp";>http:
//www.pulse24.com/Front_Page/page.asp</a></font>

how do i use requests_redirectable to follow the link
here?

another eg.i am retriving a page which automatically
attaches random numbers to the end of url, the auto
redirect(i believe it's a redirect) method should
follow the link and change the current url that the
$resp hold ? 

and, sometimes i want the current url. does
$response->header('location') always get the current
url? or it just gets the url when the webpage use some
sort of "Location:$anotherURL\n\n" ?


TIA

James.Q.L

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

Reply via email to