cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Perl WWW::Curl::Easy equivalent of PHP's CURLOPT_RETURNTRANSFER

From: <admin_at_azuni.net>
Date: Thu, 19 Nov 2009 15:52:28 +0400

Hello, I couldn't find a Perl mailing list, so excuse me for asking here.

I really need to post some data, and get the response back. Just how
would I do that? I currently have this:

$curl->setopt(CURLOPT_POSTFIELDS, $data);
$curl->setopt(CURLOPT_URL, 'https://example.com/path/to/script');
$curl->setopt(CURLOPT_VERBOSE, 1);
$curl->setopt(CURLOPT_POST, 1);
$curl->setopt(CURLOPT_SSLVERSION, 3);
$curl->perform();

There's no CURLOPT_RETURNTRANSFER in libcurl C API, and I presume Perl
doesn't have it either. WWW::Curl has almost zero documentation. Thanks
for any help.
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-11-19