新手问题 服务器端如何 post json 到别的 ip 地址?

zix · October 25, 2016 · Last by huacnlee replied at October 26, 2016 · 1791 hits

比如我要向 http:/192.168.1.101 发送{"pad_id":1360} 要如何写呢

gem 包通常会用:httparty

Net::HTTP 或其他的网络库

curl -X POST 192.168.1.101 -d "pad_id=1306"

#1 楼 @luoping0425 还找到一个叫 Faraday 的 哪个好用些?

#2 楼 @huacnlee 这个库是自带的还是需要下载?

#5 楼 @zix 不要让别人帮你搜索

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