Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > http digest auth client?

Reply
Thread Tools

http digest auth client?

 
 
Jonathan Rochkind
Guest
Posts: n/a
 
      11-22-2010
Is there any mature library in ruby to make an HTTP request with http
digest auth?

Net::HTTP doesn't seem to do it, it does basic auth only (basic auth is
so insecure it ought never to be used).

I can't seem to find any other well-used stable library that does it?

Is it just me, or is the ruby standard library http client (Net::HTTP)
really pretty terrible in general? Most of the ruby stdlib is great,
with great API's to do what you want easily. Net::HTTP is a pain to
use, and is missing some important features. Really not equal to the
standard set by the rest of the ruby stdlib.

But I'm surprised that there doesn't seem to be any good way to do this
in ruby? Is this really such an unusual thing to want to do? Or is
there an easy solution I'm missing?

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Milovan Z.
Guest
Posts: n/a
 
      11-22-2010
have you tried open-uri?
http://stdlib.rubyonrails.org/libdoc...doc/index.html

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Tony Arcieri
Guest
Posts: n/a
 
      11-22-2010
[Note: parts of this message were removed to make it a legal post.]

On Mon, Nov 22, 2010 at 4:11 PM, Jonathan Rochkind <> wrote:

> Is there any mature library in ruby to make an HTTP request with http
> digest auth?
>


You might try HTTParty. It appears to support digest auth:

https://github.com/jnunemaker/httpar...digest_auth.rb


> Is it just me, or is the ruby standard library http client (Net::HTTP)
> really pretty terrible in general?



Net::HTTP blows. Use HTTParty instead.

--
Tony Arcieri
Medioh! A Kudelski Brand

 
Reply With Quote
 
Ammar Ali
Guest
Posts: n/a
 
      11-23-2010
[Note: parts of this message were removed to make it a legal post.]

On Tue, Nov 23, 2010 at 1:11 AM, Jonathan Rochkind <> wrote:

> Is there any mature library in ruby to make an HTTP request with http
> digest auth?
>


This was recently released: https://rubygems.org/gems/net-http-digest_auth

I've never used it, so I can't vouch for it's maturity.

HTH,
Ammar

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Digest auth from HTTP to LDAP Kevin McMurtrie Java 0 06-08-2012 06:11 AM
Can't locate Digest/SHA.pm cannot install Digest/SHA myalo Perl Misc 4 11-28-2007 11:10 PM
xmlrpc and auth-digest Thomas Liesner Python 1 01-08-2007 06:20 PM
help: digest/sha2.so: no such file to load -- digest.so Tammy Mc Ruby 3 10-01-2006 01:36 AM
using HTTP Digest auth with arbitrary HTTP methods? John Reese Python 3 01-03-2005 11:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57