开发者

What rails libraries are for network connections like http and ftp

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜