curb icon indicating copy to clipboard operation
curb copied to clipboard

Curl::Err::SendFailedRewind for PUT to server with Negotiate authentication

Open jheiss opened this issue 12 years ago • 3 comments

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.

jheiss avatar Oct 17 '12 19:10 jheiss

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?

taf2 avatar Nov 05 '12 14:11 taf2

Sorry for the slow reply, got hurricaned here in New York. :)

Anyway, I get the same error with your code.

jheiss avatar Nov 07 '12 19:11 jheiss

I'm having the same problem. What's the status of this issue?

ivorwilliams avatar Mar 28 '13 15:03 ivorwilliams