SimpleDao
Linux curl常用命令
2019-05-06, 访问数: 951

post json

  1. curl -H "Content-Type: application/json" -X POST -d '{"a":"b","c":10}' http://127.0.0.1 -w %{time_connect}:%{time_starttransfer}:%{time_total}

post form

  1. curl -d "param1=value1&param2=value2" "http://127.0.0.1/test"