2017年9月16日

ruby post json

摘要: require 'net/http' require 'json' uri = URI('http://localhost/test1.php') req = Net::HTTP::Post.new uri content = {name:'root',password:'password'} req.body = content.to_json http = Net::HTTP.start(u... 阅读全文

posted @ 2017-09-16 03:04 Perl6 阅读(219) 评论(0) 推荐(0) 编辑

导航