Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

debugging POST request

Status
Not open for further replies.

Perlwannabe

Technical User
Mar 7, 2006
57
IT
Hello again,

I'm debugging a script and I'm wondering if the variable below is set correctly (script is not mine)in order to enter data in a form of a web page:

Code:
$req = (POST $admin_url,
    [ 
		'pass' => $password,
		'dataflag' => '1',
		'pagenames' => $klist
    ]);

$response = $ua->request($req);

script also use following modules:

Code:
use CGI::Carp qw (fatalsToBrowser);
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = LWP::UserAgent->new;

That script should allow to enter automatically text in a form trough a POST request logging in to a control panel but seems to fail the login step...

Thanks for any suggestion

Sincerely
 
did you already post this code? I can't remember if I seen this question here or on another forum.

- Kevin, perl coder unexceptional!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top