本文最后更新于 334 天前,其中的信息可能已经有所发展或是发生改变。
curl Post数据
curl -4 --connect-timeout 10 --retry 2 --retry-delay 3 -X POST https://you.domain.com/test.php \
-H "Content-Type: application/json" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" \
--form data1=${data1} \
--form data2=${data2}
curl Post文件
curl -4 --connect-timeout 10 --retry 2 --retry-delay 3 -X POST \
-H "Content-Type: application/json" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" \
-d @filename.json https://you.domain.com/test.php