curl
transfer a URL
网络请求
- -X指定协议方法
- -H指定header字段
- --data指定payload
curl -X POST -H 'Content-Type: application/json' --data '{
  "id":"123","passwd":"123"
}' ip_addr
1
2
3
2
3
curl -X GET ip_addr
1
transfer a URL
-X 指定协议方法-H 指定header字段--data 指定payloadcurl -X POST -H 'Content-Type: application/json' --data '{
  "id":"123","passwd":"123"
}' ip_addr
curl -X GET ip_addr