I'm trying to submit some form data to a script using lwp.
I've got it working for one site using POST instead of get but the other site isn't working.
The only differance I can see is that is uses enctype
How would I pass this using the script below to make it work?
I've got it working for one site using POST instead of get but the other site isn't working.
The only differance I can see is that is uses enctype
Code:
<form action="submit.cgi" method="post" enctype="multipart/form-data">
Code:
$ua = LWP::UserAgent->new();
$resp = $ua->post("$submiturl",
{ "$namehandle" => "$name",
"$passwordhandle" => "$submitpassword",
"$emailhandle" => "$email",
"$urlhandle" => "$url",
"$descriptionhandle" => "$description",
"$cathandle" => "$cat" });