curl 发送get,post请求

 

1.发送post请求,能够是json,htmlhtml

curl -H 'content-type: application/json' -X POST -d '{"name":"shfbjsf"}'  http://www.jnshu.com/aaajson

2.get 请求app

curl   https://way.jd.com/he/freeweather?city=handan&appkey=8010132dcf54491a4eaa387f4db61774curl