2012-04-13 80 views
0

我想知道curl是否允許我發送帶有HTTP PUT請求的空URI?我需要做一些測試。當我試試這個:如何使用curl發送HTTP PUT請求的空URI

curl --upload-file testfile.txt http://127.0.0.1:8086/ 

請求與/testfile.txt爲URI發送,我想它是簡單/。

任何想法?由於

回答

1

也許嘗試

curl --upload-file "" http://127.0.0.1:8086/ 
+0

這工作完美,謝謝! – Hoofamon 2012-04-13 12:10:13