[cURL] library call equivalent to shell

Hi world,

I'm trying to reproduce this job by using cURL library instead of shell call :

curl -F name=seb -F color=blue -F file=@/mnt/ramdisk/myFile.zip https://my.server.com/wbsrv/myUploadService.php > /mnt/ramdisk/myFile.result

Note : it's not important if "myFile.result" is not written but only get in memory, the only thing I do with it is to load it and check web-service return code ...

I've already do some download using libCurl, but not upload of binary files + others parameters ...

Thanks for your lights.

Seb.
thanks, I found this one :

http://curl.haxx.se/libcurl/c/postit2.html

is that the right way ?
Yes, that how you upload a file.
Topic archived. No new replies allowed.