marcpascual has asked for the wisdom of the Perl Monks concerning the following question:
"agreement" here is a checkbox. i tried google-izing this, searched through perdocs and cpan but either i found nothing relevant or i just didnt know where to look. obviously what i did on the code above is wrong. surely there is another (way better) way to do this, im not even sure this code nearly accomplishes what im trying to do. atleast i hope i have stated my objective/goal clearly. please enlighten me. note:i believe i have all the necessary modules installed (SSLcrypt, SSLeay, etc.) since i can GET the https page.#!/usr/bin/perl -w use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->agent("Mozilla 8.0"); use HTTP::Request::Common qw(POST); my $req = (POST 'https://www.i.ph/signup.php', [ "username" => "nonsense", "usermail" => 'myemail@yahoo.com', "userpassword1" => "password", "userpassword2" => "password", "usermobile" => "639165263265", "userchallenge" => "test test", "useranswer" => "test", "agreement" => 1 ]); $request = $ua->request($req); $content = $request->content; print $content; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: https POST and checkboxes
by Corion (Patriarch) on Sep 20, 2005 at 15:38 UTC | |
|
Re: https POST and checkboxes
by polettix (Vicar) on Sep 20, 2005 at 20:16 UTC | |
|
Re: https POST and checkboxes
by marcpascual (Acolyte) on Sep 21, 2005 at 01:06 UTC | |
|
Re: https POST and checkboxes
by marcpascual (Acolyte) on Sep 21, 2005 at 02:43 UTC |