Welcome to the Monastery | |
PerlMonks |
XPOST syntax in WWW::Curlby Steve_BZ (Chaplain) |
on Feb 01, 2015 at 12:06 UTC ( [id://1115215]=perlquestion: print w/replies, xml ) | Need Help?? |
Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question: Hi Guys, I'm trying to reprogram the following command with WWW::Curl. The command (which works as it is) has been provided by our site developer: print STDOUT `curl -XPOST '$url' -H 'Authorization: Token $token' -F $gl_media_defaults{v_suffix}='\@$file_to_upload'`; I want to have more control over error handling and the progress of large uploads as some uploads can provide no feedback for several minutes. As others have mentioned (CURL and Perl (it rymes!)), the doc is a bit hard to access without any knowledge of Curl. I see other advice about using LWP::UserAgent, which I'm happy to follow, but the same point applies. I don't want to have to learn the whole of Curl or UserAgent, just to upload a file. Thanks in advance. Steve.
Back to
Seekers of Perl Wisdom
|
|