libcurl put data binary upload zip file #12708
Replies: 2 comments 4 replies
-
I you take a look at the URL you tell libcurl to work on I think you will notice the problem. You seem to URL encode the entire thing, which I figure is highly unlikely to be a good idea. |
Beta Was this translation helpful? Give feedback.
-
The correct way to do that is with |
Beta Was this translation helpful? Give feedback.
-
I did this
Hello,
Previously i tried with curl command values, which sometimes gives issue on retrieving the return values. so i started using libcurl. now i am trying to get one function which works fine in command, but not in libcurl.
curl -X PUT --data-binary @"somezipfile.zip" "uploadurl"
with command, the above statement works fine.
i am trying to do the same through libcurl, but getting CURLE_URL_MALFORMAT error.
here is the code i am trying
what may be the issue?
Regards,
Gopi.
I expected the following
need to get some return values
curl/libcurl version
libcurl 8.5.0
operating system
windows 10
Beta Was this translation helpful? Give feedback.
All reactions