1. wget
wget -O - "http://$IP/host" --header="Content-Type: application/json" --post-data "{ \"challange\": \"$challange\", \"token\": \"$token\", \"mac\": { $mac } }" ;输出到标准输出
2. curl
curl -i -k -H "Content-type: application/json" -X POST -d '{"version":"6.6.0", "from":"mu", "product_version":"1.1.1.0"}' https://10.10.10.10:80/test
3. C语言实现get和post
参考: