L
lichtenj
I am trying to automatically submit a form to a website. While my setup
works for all other pages i submit to, one page returns "In fct
"Strdup" : Invalid argument".
I tried submitting the cookie the page saved when i am using the form
on the web.
This is where i am submitting my variables, stored in a parameter hash
called submit, to the website:
my $cookie_jar = HTTP::Cookies->new(
file => '(e-mail address removed)',
);
my $ua = LWP::UserAgent->new();
$ua->cookie_jar($cookie_jar);
my $req = POST $url, [$submit];
my $content = $ua->request($req)->as_string;
if ( $content )
{
if ( open(RESP, ">$htm") )
{
print RESP $content;
close RESP;
print "$htm written\n"
}
else
{
print "Opening $htm: $!\n";
}
}
else
{
print "Website submission failed\n";
}
All i could find about Strdup was that it is used for string
duplication and some sort of fake request checking in Apache.
Any help you can give me is highly appreciated.
works for all other pages i submit to, one page returns "In fct
"Strdup" : Invalid argument".
I tried submitting the cookie the page saved when i am using the form
on the web.
This is where i am submitting my variables, stored in a parameter hash
called submit, to the website:
my $cookie_jar = HTTP::Cookies->new(
file => '(e-mail address removed)',
);
my $ua = LWP::UserAgent->new();
$ua->cookie_jar($cookie_jar);
my $req = POST $url, [$submit];
my $content = $ua->request($req)->as_string;
if ( $content )
{
if ( open(RESP, ">$htm") )
{
print RESP $content;
close RESP;
print "$htm written\n"
}
else
{
print "Opening $htm: $!\n";
}
}
else
{
print "Website submission failed\n";
}
All i could find about Strdup was that it is used for string
duplication and some sort of fake request checking in Apache.
Any help you can give me is highly appreciated.