curl post二進(jìn)制數(shù)據(jù)
命令示例:
curl --data-binary @demo.dat http://localhost/demo.do
注:
--data-binary代表傳送的是二進(jìn)制數(shù)據(jù);
@demo.dat代表當(dāng)前傳送的二進(jìn)制文件路徑,即當(dāng)前目錄下的demo.dat文件;
http://localhost/demo.do代表服務(wù)器接口地址;
curl --data-binary @demo.dat http://localhost/demo.do
注:
--data-binary代表傳送的是二進(jìn)制數(shù)據(jù);
@demo.dat代表當(dāng)前傳送的二進(jìn)制文件路徑,即當(dāng)前目錄下的demo.dat文件;
http://localhost/demo.do代表服務(wù)器接口地址;
posted on 2016-07-08 16:00 小一敗涂地 閱讀(5415) 評(píng)論(0) 編輯 收藏 所屬分類: linux相關(guān)