dchandler has asked for the wisdom of the Perl Monks concerning the following question:
Thanks a lot monks, below is code.
use strict; use LWP::Simple; use LWP; use HTTP::Cookies; my $browser=LWP::UserAgent->new; $browser->cookie_jar({}); my $response=$browser->post( 'https://id.thewebsite.com/exec?c=user&f=login&_ref=User%5CLoginForm"' +, [ 'un'=>"username", 'pw'=>"password", 'as'=>"stuffthatwashidden", 'sid'=>"stuffthatwashidden", 'rs'=>"stuffthatwashidden", 'rc'=>'stuffthatwashidden' ], ); print $response->status_line;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to allow POST to redirect
by Anonymous Monk on Nov 07, 2004 at 22:57 UTC | |
by belg4mit (Prior) on Nov 08, 2004 at 00:07 UTC |