Need ruby equivalent of perl's LWP (libwww-perl)

hi,
Subject says it all. Is there such a library for ruby? something close?

thanks,
gavri

Gavri Savio Fernandez wrote:

hi,
Subject says it all. Is there such a library for ruby? something close?

You probably mean net/http, included in the ruby standard library. you
can see:
http://www.rubycentral.com/book/lib_network.html
(and search for net/http)

emmanuel

PS: that link documents net/http in ruby 1.6, there were minor
API-incompatible changes in 1.8, but nothing important.
PPS: for simple fetching, considering open-uri.

Hi

As Emmanuel says, there’s net/http in the standard distribution - which
offers fairly low-level access.

For something more like LWP, especially the classes like LWP::UA which
give higher-level (easy) access to HTTP, you probably want HTTP-Access2

http://raa.ruby-lang.org/list.rhtml?name=http-access2

It includes things like seamless HTTPS handling and cookie helper
classes. Documentation’s not as rich as LWP, but enough to get going.

cheers
alex

Gavri Savio Fernandez wrote:

···

hi,
Subject says it all. Is there such a library for ruby? something close?

thanks,
gavri

More up-to-date docs can be found at http://www.ruby-doc.org/stdlib/ .

Francis

Emmanuel Touzery emmanuel.touzery@wanadoo.fr wrote in message news:40890F99.6000904@wanadoo.fr

···

Gavri Savio Fernandez wrote:

hi,
Subject says it all. Is there such a library for ruby? something close?

You probably mean net/http, included in the ruby standard library. you
can see:
http://www.rubycentral.com/book/lib_network.html
(and search for net/http)

emmanuel

PS: that link documents net/http in ruby 1.6, there were minor
API-incompatible changes in 1.8, but nothing important.
PPS: for simple fetching, considering open-uri.