-
Notifications
You must be signed in to change notification settings - Fork 968
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
putting data-binary data #380
Comments
That exception is from the |
You did almost everything right, but forgot to state the adapter. You should add the adapter line: conn = Faraday.new(url: "...") do |faraday|
faraday.request :multipart
faraday.response :logger
faraday.adapter :net_http
end You don't have to take out the |
@ngw I know this is an older issue, but did mislav's answer of making sure to specify the Faraday adapter solve your problem? If it did, would you mind closing the issue when it's convenient for you? And if there is still some issue, please write back and I'll try to help resolve. 😃 Thanks! |
Yes, no idea why I forgot to close this... Sorry guys |
Hi, I'm not sure if this is supported at all by faraday, but I'm trying to do and HTTP PUT request with faraday and I'm stuck to what curl calls --data-binary format. The request is:
What I'm trying to do is:
But it doesn't work: https://gist.github.com/ngw/ef5cdb2fb7648016ba1f
Can I do such a request?
The text was updated successfully, but these errors were encountered: