2016-04-26 109 views
1

我使用下面的命令curl推度量opentsdbOpenTSDB捲曲張貼問題

curl -X POST --data-binary gzip.json --header "Content-Type: application/json" --header "Content-Encoding: gzip" http://mycloud:xxxx/api/put?details 

並獲得

curl: (52) Empty reply from server 

然而opentsdb運行起來,我可以查詢使用/api/query/了。你能確定我錯在哪個部分嗎?

+0

捲曲通話似乎好吧,只有一件事 - 使用@與數據即@ gzip.json –

回答

1

的捲曲調用看起來不錯,但只有一兩件事 - 使用@與數據,即@gzip.json

您的通話將是:

curl -X POST --data-binary "@gzip.json" --header "Content-Type: application/json" --header "Content-Encoding: gzip" http://mycloud:xxxx/api/put?details 

來源:Compressed Request section

+0

是的我想通了。謝謝@nabeel –