-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are no any way to send file by post #6
Comments
You're right. I will fix it as soon as possible! Stay tuned for more updates and commits :) |
I found a way to create forms in a flexible way. I will upload new sources as soon as possible! Here's a little sneak peak: curl_form form; // create name |
What do you think about this? template<typename T, typename T2, typename T3, typename T4, typename T5> CurlHttpPost &CurlHttpPost::formAdd( |
Check the commit I just did. Now you should be able to do what you wrote in the first post :) I used a nested class system to split the form creation. Let me know! |
thanks! |
Thank you! |
i mean, there are no anyway at the moment to do something like this
curl_formadd(&post, &last,
CURLFORM_COPYNAME, "file",
CURLFORM_FILE, "C:\rect.jpg",
CURLFORM_END);
curl_formadd(&post, &last,
CURLFORM_PTRNAME, "fileupload",
CURLFORM_BUFFER, "image",
CURLFORM_BUFFERPTR, png.GetOutputStreamBuffer()->GetBufferStart(),
CURLFORM_BUFFERLENGTH, png.GetOutputStreamBuffer()->GetBufferSize(),
CURLFORM_CONTENTTYPE, "image/png",
CURLFORM_END);
The text was updated successfully, but these errors were encountered: