Reputation: 15259
I am using Ruby on Rails and I would like to make HTTP requests in a more "confortable" and "smart" way of using the Ruby net/http
standard library.
So, what do you advice to use in order to make HTTP requests? I heard there are some gems that make multiple requests in parallel, but I am not sure to do the right choice.
P.S.: I need some of reliable because I am trying to implement a messaging system between multiple applications.
Upvotes: 2
Views: 313
Reputation: 66436
I like curb and typhoeus depending on the situation. I'd use Curb for really simple things, and typhoeus for more complex requests.
I would advise against libs curb-fu or patron that are not stable enough when you try to do things a bit too complicated (tried both a few months ago, it might have changed since).
You also have HTTParty that can do the trick for you, but personnally I'm not a big fan of the way it works (but that's just me).
Upvotes: 3