【背景】 学习piping-server时用curl命令传数据给piping-server服务器,语句如下: echo 'hello,world'|curl -T -http://127.0.0.1:8080/hello 报如下错误: curl: no URL specified! 【分析】 这样的报错一般都是语法错误。 注意空格。 正确语法如下: echo 'hello,world' | curl -T - http://127.0.0.1:8080/hello