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::Err::SendFailedRewind for PUT to server with Negotiate authentication #131

Open
jheiss opened this issue Oct 17, 2012 · 3 comments
Open

Comments

@jheiss
Copy link
Contributor

jheiss commented Oct 17, 2012

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.

@taf2
Copy link
Owner

taf2 commented Nov 5, 2012

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?

@jheiss
Copy link
Contributor Author

jheiss commented Nov 7, 2012

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

Anyway, I get the same error with your code.

@ivorwilliams
Copy link

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

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

3 participants