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
Googling how to perform a PUT with libcurl sends you to the httpput.c example which uses CURLOPT_PUT:
curl/docs/examples/httpput.c
Lines 95 to 96 in 374329d
But the manual page for this option says "Deprecated, don't use". So maybe the example should be updated?
The text was updated successfully, but these errors were encountered:
examples/httpput: remove use of CURLOPT_PUT
e8d2e14
It is deprecated and unnecessary since it already sets CURLOPT_UPLOAD. Reported-by: Jeroen Ooms Fixes #6186
As a side-note, it would be useful if the example would also illustrate how to perform a PUT using CURLOPT_POSTFIELDS instead of a file upload. That is what most clients are usually more interested in.
Sorry, something went wrong.
httpput-postfields.c: new example doing PUT with POSTFIELDS
123f8c1
Proposed-by: Jeroen Ooms Ref: #6186
fa6bbbe
71ec4e7
Proposed-by: Jeroen Ooms Ref: #6186 Closes #6188
bagder
Successfully merging a pull request may close this issue.
Googling how to perform a PUT with libcurl sends you to the httpput.c example which uses CURLOPT_PUT:
curl/docs/examples/httpput.c
Lines 95 to 96 in 374329d
But the manual page for this option says "Deprecated, don't use". So maybe the example should be updated?
The text was updated successfully, but these errors were encountered: