curb
curb copied to clipboard
Curl::Err::SendFailedRewind for PUT to server with Negotiate authentication
POST works, but PUT gets Curl::Err::SendFailedRewind when used against a server (nginx) with HTTP negotiate (Kerberos) authentication.
My code looks like:
Curl::Easy.send(:http_put, url, '{}') do |curl|
curl.http_auth_types = :gssnegotiate
curl.username = ':'
curl.headers['Content-Type'] = 'application/json'
end
Change :http_put to :http_post and it works.
what do you get when you try
Curl.put(url, '{}') do|curl|
curl.http_auth_types = :gssnegaotiate
curl.username = ':'
curl.headers['Content-Type'] = 'application/json'
end
Same thing?
Sorry for the slow reply, got hurricaned here in New York. :)
Anyway, I get the same error with your code.
I'm having the same problem. What's the status of this issue?