0
比方說,我的POST數據看起來像這樣在捲曲命令有沒有辦法用cURL寫一個POST調用的整個請求體?
cURL -v -b cookies.txt -X POST -H "Content-Type:application/json" http://localhost:7501/rest/model/customer/getCustomerData -d {"_dynSessConf":"-1234567891235698","custId":"1109"} -o "customerData.txt"
在customerData.txt
正確的輸出記錄。我的問題 -
有沒有辦法記錄請求主體呢? (從會話確認號碼開始的json部分)?
我真的很感謝任何幫助,因爲cURL man page不能幫助我!謝謝。節日快樂!! :)