What rails gems are used for things like http r开发者_运维知识库equests (get, post) and for connecting to a ftp server?
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
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
I am using HTTParty to working with web-services.
精彩评论