Blankman
Blankman

Reputation: 266950

What rails libraries are for network connections like http and ftp

What rails gems are used for things like http requests (get, post) and for connecting to a ftp server?

Upvotes: 2

Views: 137

Answers (3)

ceth
ceth

Reputation: 45295

I am using HTTParty to working with web-services.

Upvotes: 1

jefflunt
jefflunt

Reputation: 33954

Coreyward is correct.

If you find that you need to go lower-level, you can also look into socket programming.

Ex: http://www.tutorialspoint.com/ruby/ruby_socket_programming.htm

Upvotes: 1

coreyward
coreyward

Reputation: 80041

The de-facto library is Net::HTTP and Net::FTP (respectively), but there are a number of better ones out there. Check out this fairly inclusive feature matrix to see which one fits your needs best:

Ruby HTTP Clients – Feature Matrix/Table

Upvotes: 4

Related Questions