目的1:經過腳本發送post請求。
答案: curl -d "leaderboard_id=7778a8143f111272&score=19&app_key=8d49f16fe034b98b&_test_user=test01" "http://172.16.102.208:8089/wiapi/score"
目的2:經過腳本發送post請求,順便附帶文本數據,好比經過"瀏覽"選擇本地的card.txt並上傳發送post請求
答案: curl -F "blob=@card.txt;type=text/plain" "http://172.16.102.208:8089/wiapi/score?leaderboard_id=7778a8143f111272&score=40&app_key=8d49f16fe034b98b&_test_user=test01"
其中-F 爲帶文件的形式發送post請求, blob爲文本框中的name元素對應的屬性值。<type="text" name="blob">api