From: Robert Klemme Date: 2010-05-21T00:01:35+09:00 Subject: Re: curl library? 2010/5/20 Xeno Campanoli / Eskimo North and Gmail : > On 10-05-20 02:37 AM, Robert Klemme wrote: >> >> 2010/5/19 Xeno Campanoli / Eskimo North and >> Gmail: >>> >>> On 10-05-18 04:28 PM, Xeno Campanoli / Eskimo North and Gmail wrote: >>> >>> So, I installed rubycurl, that being the listed package of greatest >>> maturity, but no document I can find can seem to help me use it.  Most of >>> the stuff on line refers to curb or multi-curb it seems. >> >> You could also use net/http which is part of the standar library and >> documented: >> >> http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html > > Yes, but I am trying to move from using curl on shell to getting the same > functionality without the two extra forks to shell and to curl itself.  Plus > the native has a bad wrap, I don't know if it's deserved, but I haven't > found it copasetic myself. Why two forks? In order to start curl as an external process you just need one fork and one exec (or use "system"). Also, why do you say "but"? Net/HTTP does not need "curl" or any other external process so I do not see how my suggestion contradicts your goal. On the contrary, I deliberately suggested to use Net/HTTP in order to _not_ have to depend on gems or external processes. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/