开发者

What rails libraries are for network connections like http and ftp

开发者 https://www.devze.com 2023-02-28 23:54 出处:网络
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 nu

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消