The request body did not contain the specified number of bytes.

問題:request的返回status 爲408 Request body incomplete
返回內容:The request body did not contain the specified number of bytes. Got 532, expected 1,111
解決辦法:在header中註釋Content-Length:1111,server端長度校驗出錯了。
ps:content-length配置長度比實際的小沒事,配置的比實際的長度大會報錯,校驗不通過了。看來http協議校驗Length長度有優化的地方。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章