PB + CURL Sending a file to the server

Just starting out? Need help? Post your questions and find answers here.
m0t0d0r
New User
New User
Posts: 2
Joined: Sun Jun 24, 2012 6:12 pm

PB + CURL Sending a file to the server

Post by m0t0d0r »

Please sample code that sends files to the server from a form

Multipart / form-data
CURL

I apologize for my English
User avatar
fiver
User
User
Posts: 36
Joined: Wed May 05, 2004 8:21 pm
Location: An outer spiral arm of the Milky Way

Re: PB + CURL Sending a file to the server

Post by fiver »

Use the search Luke!!

Recent post with a libcurl wrapper


Progi1984's original curl wrapper:

http://goo.gl/zdXmi


Or do it without the extra bulk of curl 8) :

Drag and drop Image uploader

Look particularly at HttpPostMultipart.
m0t0d0r
New User
New User
Posts: 2
Joined: Sun Jun 24, 2012 6:12 pm

Re: PB + CURL Sending a file to the server

Post by m0t0d0r »

Code: Select all

curl_formadd(@formpost, @last_post, #CURLFORM_COPYNAME, @"CMD", #CURLFORM_COPYCONTENTS, @"AUTH", #CURLFORM_END);
WARNING incorrect number of parameters

HELP!!!
Post Reply