dibucho has asked for the wisdom of the Perl Monks concerning the following question:
It does not matter if I use the link directly, it gives me the same result. Here is my code:<HTML> <!-- File: redirectmeta.html --> <HEAD> <LINK REL="stylesheet" TYPE="text/css" HREF="/livelink_desupport/livel +ink.css"> <STYLE> .browseRow1 { background-color: #FFFFFF; } .browseRow2 { background-color: #EEEEEE; } </STYLE> <TITLE>Livelink - Umleitung</TITLE> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=/livelink_de/livelink/fetch +/2000/13022444/customview.html?func=ll&objId=13022444&objActi +o n=browse&sort=name"> </HEAD> </HTML> <!-- End File: redirectmeta.html -->
Thanks for all your help Greetings Dibuchouse LWP::UserAgent; use HTTP::Cookies::Netscape; $ua = LWP::UserAgent->new; $ua->agent("MyApp/0.1 "); my $cookie_jar = HTTP::Cookies::Netscape->new( file => "C:/Mozilla/Firefox/Profiles/096xdbsa.default/cookie +s.txt", autosave => 1, ); $ua->cookie_jar( $cookie_jar ); my $res = $ua->get('https://tsi-myworkroom-de.telekom.de/livelink_de +/livelink/fetch/2000/13022444/customview%2Ehtml?func=ll&objId=1302244 +4&objAction=browse&sort=name'); if ($res->is_success) { print $res->content; } else { print $res->status_line, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::UserAgent, redirection does not work
by Corion (Patriarch) on Oct 08, 2007 at 14:25 UTC | |
by ikegami (Patriarch) on Oct 08, 2007 at 17:23 UTC | |
by dibucho (Initiate) on Oct 14, 2007 at 13:19 UTC | |
by Corion (Patriarch) on Oct 14, 2007 at 16:53 UTC | |
by Anonymous Monk on Oct 18, 2007 at 10:51 UTC | |
by Corion (Patriarch) on Oct 18, 2007 at 11:26 UTC |