
Demerzel
Novice
Jun 6, 2011, 3:26 PM
Post #2 of 5
(775 views)
|
I was able to move forward a little
my $postfields =':user=s&pass=S&number=324&text=dfgdfgdf&from=8'; my $curl= WWW::Curl::Easy->new(); $curl->setopt(CURLOPT_URL, $url); $curl->setopt(CURLOPT_RETURNTRANSFER, 1); $curl->setopt(CURLOPT_POST, 1); $curl->setopt(CURL_POSTFIELDS, $postfields); $curl->setopt(CURLOPT_TIMEOUT, 10); my $retcode = $curl->perform; $curl->urlencode(); print $curl->strerror($retcode); But I get error
Argument "CURL_POSTFIELDS" isn't numeric in subroutine entry at ./script.pl line 283 (#2) Argument ":user=s&pass=S&number=3&text=d..." isn't numeric in subroutine entry at ./script.pl line 283 (#2) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>413 Request Entity Too Large</title> </head><body> <h1>Request Entity Too Large</h1> The requested resource<br />/ble.php<br /> does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit. </body></html> Status: 001, Id: "longid..........", Number: No error7
(This post was edited by Demerzel on Jun 6, 2011, 3:28 PM)
|