views:

115

answers:

4

hi all, i want to know whether there are libraries like java httpclient in ruby? great thanks.

+1  A: 

REST Client is pretty handy and easy to use library.

Milan Novota
+1  A: 

Have you tried either of these two?

ruby-httpclient
Patron

daustin777
+3  A: 

Ruby comes with the Net/HTTP library out of the box. I recommend using that first, and if you need something higher level, look at external libraries like e.g. REST client.

Soleone
+1  A: 

Net::HTTP if you don't want an external dependency, Curb/Curl::Multi if you need raw performance, Patron if you want a good middle-of-the-road solution, and open-uri if you need something quick and dirty that will never see production usage.

Patron is usually my favored solution.

Bob Aman