in reply to File POSTing with WWW::Curl::Easy
perl CURL upload -> curl upload xml file
CURL upload site:perlmonks.org -> Correct way to POST with Perl Curl?
curl attachment site:search.cpan.org -> WWW::Curl::Form
use WWW::Curl::Form; my $curlf = WWW::Curl::Form->new; $curlf->formaddfile($filename, 'attachment', "multipart/form-data" +); $curlf->formadd("FIELDNAME", "VALUE"); $curl->setopt(CURLOPT_HTTPPOST, $curlf);
Yup, I think I'd stick with WWW::Curl::Form
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File POSTing with WWW::Curl::Easy
by kurt2439 (Sexton) on Jan 27, 2012 at 15:10 UTC |