in reply to Re: Correct way to POST with Perl Curl?
in thread Correct way to POST with Perl Curl?

Here is the full attempt with mode verbose
* About to connect() to 1.1.1.1 port 443 (#0) * Trying 1.1.1.1... * connected * Connected to 1.1.1.1 (1.1.1.1) port 443 (#0) * CAfile: /certs/ca-bundle.crt CApath: none * Issuer certificate is invalid: 'E=support' * SSL certificate verify ok. * SSL connection using SSL_RSA_WITH_RC4_128_MD5 * Server certificate: * subject: * start date: May 08 04:35:59 2009 GMT * expire date: May 07 04:35:59 2014 GMT * common name: 1.1.1.1 * > POST /auth?level=2&pass=password&hsam_timeout=20 HTTP/1.1 Host: 1.1.1.1 Accept: */* Content-Length: 1000 Expect: 100-continue < HTTP/1.1 417 Expectation Failed < Connection: close < Content-Length: 0 < Date: Tue, 19 May 2009 04:35:22 GMT < Server: httpd < * Closing connection #0

Replies are listed 'Best First'.
Re^3: Correct way to POST with Perl Curl?
by josh803316 (Beadle) on May 19, 2009 at 06:37 UTC
    Well, here is what ended up working for me, perhaps it can help somebody else down the line:
    $curl->setopt( CURLOPT_POSTFIELDS, "$string" ); $curl->setopt( CURLOPT_POSTFIELDSIZE, $length ); $curl->setopt( CURLOPT_POST, 1 ); $curl->setopt( CURLOPT_CONNECTTIMEOUT,8);