Trogdor
02-07-2004, 07:22 PM
I am using LWP in perl to fill in forms. I have part of a script written, and I need to know how to post submit data.
The website I am using this script on is indecline.net (http://www.indecline.net/index.php) . Here is the code I am wondering about:POST 'http://www.indecline.net/index.php',
Content_Type => 'form-data',
Content => [ user => 'my_username',
passwd=>'my_password',
submit=>#What to put here to submit the above data?
]
I'm very very new to lwp, and to perl (but I know php, c++, etc), so there are probably many errors. I'm just trying to submit data through a post form.
Thanks.
The website I am using this script on is indecline.net (http://www.indecline.net/index.php) . Here is the code I am wondering about:POST 'http://www.indecline.net/index.php',
Content_Type => 'form-data',
Content => [ user => 'my_username',
passwd=>'my_password',
submit=>#What to put here to submit the above data?
]
I'm very very new to lwp, and to perl (but I know php, c++, etc), so there are probably many errors. I'm just trying to submit data through a post form.
Thanks.