# Is there any curl like lib in ruby?

**URL:** <https://www.ruby-forum.com/t/is-there-any-curl-like-lib-in-ruby/75908>\
**Category:** Ruby\
**Created:** [November 14, 2006, 7:23am UTC](https://www.ruby-forum.com/t/is-there-any-curl-like-lib-in-ruby/75908 "2006-11-14T07:23:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuesefa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9f8e36/32.png) [@yuesefa](https://www.ruby-forum.com/u/yuesefa)\
**Post date:** [November 14, 2006, 7:23am UTC](https://www.ruby-forum.com/t/is-there-any-curl-like-lib-in-ruby/75908/1 "2006-11-14T07:23:18Z")

</div>

I am not sure if there is any curl like lib in ruby. thanks

---

<div class="post-metadata">

**Author:** ![yuesefa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9f8e36/32.png) [@yuesefa](https://www.ruby-forum.com/u/yuesefa)\
**Post date:** [November 14, 2006, 11:04am UTC](https://www.ruby-forum.com/t/is-there-any-curl-like-lib-in-ruby/75908/2 "2006-11-14T11:04:04Z")

</div>

I am not sure either, but this is how I approached this problem:

Open3.popen3(“curl --proxy #{proxy\_addr}:#{proxy\_port} --max-time 20  
[www.yahoo.com](http://www.yahoo.com)”) do |stdin,stdout,stderr|  
err\_msg = stderr.read  
output = stdout.read  
#do something  
end

HTH,  
Peter

\_\_  
[http://www.rubyrailways.com](http://www.rubyrailways.com)

---

<div class="post-metadata">

**Author:** ![yuesefa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9f8e36/32.png) [@yuesefa](https://www.ruby-forum.com/u/yuesefa)\
**Post date:** [November 14, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/is-there-any-curl-like-lib-in-ruby/75908/3 "2006-11-14T17:37:00Z")

</div>

It’s a big shame that ruby lacks curl bindings. There’s http-access2,  
but it doesn’t come to curl’s toes. Curl has bindings for nearly every  
language in common use, except Ruby.

BTW, if anyone is interested in making decent bindings, please post  
here. I may be able to sponsor it. (Please don’t private email me.)

---

<div class="post-metadata">

**Author:** ![yuesefa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9f8e36/32.png) [@yuesefa](https://www.ruby-forum.com/u/yuesefa)\
**Post date:** [November 15, 2006, 10:33am UTC](https://www.ruby-forum.com/t/is-there-any-curl-like-lib-in-ruby/75908/4 "2006-11-15T10:33:25Z")

</div>

Good question!

I am interested in recursive listing FTP. Using Net::FTP isn’t  
convienient as I want informations about size and date (I could parse  
it by hand, but it isn’t that elegant). OpenURI isn’t usefull either ☹

Haofei W. a écrit :
