Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > is there any curl like lib in ruby?

Reply
Thread Tools

is there any curl like lib in ruby?

 
 
Haofei Wang
Guest
Posts: n/a
 
      11-14-2006
I am not sure if there is any curl like lib in ruby. thanks

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

 
Reply With Quote
 
 
 
 
Peter Szinek
Guest
Posts: n/a
 
      11-14-2006
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") do |stdin,stdout,stderr|
err_msg = stderr.read
output = stdout.read
#do something
end

HTH,
Peter

__
http://www.rubyrailways.com


 
Reply With Quote
 
 
 
 
S. Robert James
Guest
Posts: n/a
 
      11-14-2006
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.)

 
Reply With Quote
 
Tristram Gräbener
Guest
Posts: n/a
 
      11-15-2006
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 Wang a écrit :

> I am not sure if there is any curl like lib in ruby. thanks
>
> --
> Posted via http://www.ruby-forum.com/.


 
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
any python wrapper to call .lib static library(ufmod.lib)? est Python 1 02-16-2008 10:56 AM
501 PIX "deny any any" "allow any any" Any Anybody? Networking Student Cisco 4 11-16-2006 10:40 PM
are there any lib for receive hotmail ? =?utf-8?B?5Y+u5Y+u5b2T5b2T?= Python 6 09-12-2006 05:11 AM
is there any lib can split string in this way? Leo Jay Python 2 01-09-2006 07:26 AM
Is there any generic way to find jar lib directory from InstallShield ? jack Java 1 04-03-2004 12:46 AM



Advertisments