Hi !
Thank you for the quick info i took a quick look.
It seems that this:
curl_formadd(&formpost,
&lastptr,
CURLFORM_COPYNAME, "fname",
CURLFORM_FILE, "foo.txt",
CURLFORM_END);
Is the equivalent of the -F"fname=@foo.txt", right ?
And this is the equivalent of -F "filename=test.txt" :
curl_formadd(&formpost,
&lastptr,
CURLFORM_COPYNAME, "filename",
CURLFORM_COPYCONTENTS, "test.txt",
CURLFORM_END);
Am i correct, that would be GREAT.
If not, please point out my mistake :-)
THANK YOU,
Nils
Last edited on