新手问题 如何实现 Post xml 格式的数据到指定的 url ,网上找了半天资料说用 net:http

goody9807 · April 28, 2015 · Last by goody9807 replied at April 28, 2015 · 1306 hits

最好有源码,我是初学者水平不是很高,谢谢各位大神了

另外我看网上有很多人都是用插件,ruby on rails 原生的方法是什么

感觉很困惑

是不是要指定 content_type 呢

人都不在吗?

xml = "" http = Net::HTTP.new("http://localhost:3000") response = http.post("/account", xml) render response

这样报 422 Unprocessable Entity

You need to Sign in before reply, if you don't have an account, please Sign up first.