19 Nov 2009 12:52
Perl WWW::Curl::Easy equivalent of PHP's CURLOPT_RETURNTRANSFER
<admin <at> azuni.net>
2009-11-19 11:52:28 GMT
2009-11-19 11:52:28 GMT
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
RSS Feed