curl发送json到rails的方法

curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d ' {"weather_query":{"mobile":"15610897869","username":"李四","area_code":"0578"}}' http://127.0.0.1:3000/weather_queries/

 

相关推荐