Specimen has asked for the wisdom of the Perl Monks concerning the following question:
unfortunately it doesnt follow the redirect unless its a get request (as an aside, why on earth have that behaviour ?). How can i overide the $ua->redirect_ok method so that it returns TRUE instead of FALSE ? Thanks very much, Specimen$cookies = new HTTP::Cookies( ignore_discard => 1); $ua = LWP::UserAgent->new(); @fieldValueArray = ('this', 'that', 'andthe', 'other'); my $req = POST "http://127.0.0.1/mycgi", \@fieldValueArray;
Edit: 2001-03-03 by neshura
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: make useragent follow redirects in post actions
by arhuman (Vicar) on Feb 21, 2001 at 14:43 UTC | |
by Specimen (Acolyte) on Feb 21, 2001 at 15:34 UTC | |
by Specimen (Acolyte) on Feb 21, 2001 at 17:42 UTC | |
by merlyn (Sage) on Feb 21, 2001 at 18:48 UTC | |
by Anonymous Monk on Feb 21, 2001 at 21:14 UTC | |
by Anonymous Monk on Aug 12, 2002 at 03:50 UTC |