curlpp icon indicating copy to clipboard operation
curlpp copied to clipboard

How to upload a binary file(examle: a image) by Form?

Open shaozhihua opened this issue 4 years ago • 0 comments

hello sir, I have already seen the examples: "example19.cpp",but I am a little confused,I don't know how to post a image by form ,should I use some fix options? like formParts.push_back(new curlpp::FormParts::Content("filename", "/home/zsh/test.jpeg")); and request.setOpt(new curlpp::options::HttpPost(formParts)); and request.perform();? I wonder a specific code.I am not smart,thanks so much!

shaozhihua avatar Dec 05 '21 06:12 shaozhihua