Is there a curl library for Ruby?
+5
A:
Use open-uri and
open("http://...", :http_basic_authentication=>[user, password])
accessing sites/pages/resources that require HTTP authentication.
apostlion
2009-05-30 12:52:30
Honestly, if I see that a library uses open-uri internally, I don't use that library. It's a deeply flawed library built on top of a deeply flawed URI parser. It's fine for usage in IRB and that's it.
Bob Aman
2009-06-01 19:30:16
@Sporkmonger: Well, that's what we have— what do you suggest, raw Net::HTTP?
apostlion
2009-06-02 05:18:51
Use Net::HTTP or Patron or Curb or any of the other libraries mentioned in the other answers. How this answer got voted up or accepted is beyond me.
Bob Aman
2009-10-25 03:22:04
+4
A:
If you like it less low-level, there is also Typhoeus, which is built on top of Curl::Multi.
Skade
2009-05-30 15:12:48
+3
A:
Curb-fu is a wrapper around Curb which in turn uses libcurl. What does Curb-fu offer over Curb? Just a lot of syntactic sugar - but that can be often what you need.
Peter Cooper
2009-05-31 16:14:44