摘要:
Creating Requests require 'unirest' response = Unirest.post 'http://httpbin.org/post', headers:{ Accept:'application/json' }, parameters:{ age: 23, fo 阅读全文
摘要:
OpenURI is an easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP(OpenURI支持重定向) 像打开普通文件那样打开http/ftp的URL open("http://www.ruby-lang.org/") {|f| 阅读全文