Skip to content
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

Curl options are being set wrong for PUT #34

Closed
auroraeosrose opened this issue May 27, 2015 · 0 comments
Closed

Curl options are being set wrong for PUT #34

auroraeosrose opened this issue May 27, 2015 · 0 comments

Comments

@auroraeosrose
Copy link
Contributor

when doing a PUT with curl - if the CURLOPT_PUT is used CURLOPT_INFILE and CURLOPT_INFILESIZE.MUST be used (see the docs)

Currently you are checking for $content being a resource and trying to use CURLOPT_POSTFILES in other cases - this will fail

The proper fix is to push the string through a php memory stream and send that via curlopt_infile, otherwise put data will never be sent properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant