-1
我有以下的代碼,以使JSON請求,但它失敗:無法將內容類型設置爲JSON在功能測試
Response response = POST("/b/profile/","application/json",body);
我也試過這一個:
Response response = POST("/b/profile/","application/x-www-form-urlencoded",body);
,但是響應再次具有內容類型text/html
。有任何想法嗎?
有什麼錯誤請參見here?堆棧跟蹤? –