Post 泽西岛:http错误400
我需要在春天写一个泽西岛的客户 使用CURL可以实现以下功能:Post 泽西岛:http错误400,post,curl,jersey,Post,Curl,Jersey,我需要在春天写一个泽西岛的客户 使用CURL可以实现以下功能: curl --header "Authorization: Basic aaaaaaabbbbb" --header "Content-Type: application/json" --request POST "http://163.162.8.112:9000/path" --data @TestWrapperJob.json --> return a STRING -- TestWrapper.json { "nam
curl --header "Authorization: Basic aaaaaaabbbbb" --header "Content-Type: application/json" --request POST "http://163.162.8.112:9000/path" --data @TestWrapperJob.json
--> return a STRING
-- TestWrapper.json
{ "name": "job2aad",
"description": "Descrizione test job1",
"tests": [ {
"TestPath": "EsempiRiccardo\\TestWrapper",
"TestDuration": "2"
} ],
"topology": null
}
现在我正试图用JAVA进行翻译,但我得到了HTTP错误400
怎么了
里卡多好的,对不起大家。。。
我找到了答案
+ " \"TestPath\": \"EsempiRiccardo\\TestWrapper\", "
应该是
+ " \"TestPath\": \"EsempiRiccardo\\\\TestWrapper\", "
+ " \"TestPath\": \"EsempiRiccardo\\\\TestWrapper\", "