linux curl

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"aa":"bb"}' 'http://localhost:8080/api/event'

curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"aa":"bb"}' 'http://localhost:8080/api/event'

curl -X GET --header 'Accept: application/json' 'http://localhost:8080/api/event/queues?verbose=false'

curl -X DELETE --header 'Accept: application/json' 'http://localhost:8080/api/event/yourname'

执行curl命令时,会返回这样的% Total % Received % 统计信息




如何关闭这个统计信息的显示?

-----使用curl的-s 选项即可

----------------------------

curl -Lsfo /zookeeper.tar.gz http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.5.3-beta/zookeeper-3.5.3-beta.tar.gz   //下载, 但下压缩包有问题

curl -LsfO  http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.5.3-beta/zookeeper-3.5.3-beta.tar.gz

原文地址:https://www.cnblogs.com/mhc-fly/p/7158821.html