If you want to get a redirect out of a cookie
you could try something like
$cookies->extract_cookies($res);
$cookiestring = $cookies->as_string;
Then parse out the redirect from the string
I fyou want a specific header like a 'Refresh' header
try something like $res->header("Refresh")-Chris G. -----Original Message----- From: Torbj�rn Lindahl [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 5:05 AM To: lwp maillist Subject: response object hello, can anyone tell me how to extract headers received from the response object received useing LWP::UserAgent? i have looked through the functions on this page: http://www.perldoc.com/perl5.6.1/lib/LWP.html#The-Response-Object but cant seem to find what i need. In my specific case i receive a cookie that i need to pick up and some redirectinoal headers. if nothing else works i guess i could always extract the headers as a string and find them in it, but it says the "$r->as_string" is only intended for debugging purposes, and indeed, there should be an easier way to receive the headers i figured.
