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