rest请求在restclient中工作,但在postman/java中不工作

6yoyoihd  于 2021-07-09  发布在  Java
关注(0)|答案(1)|浏览(365)

请求在postman/java中失败,但在restclient中工作。。这是请求,附件是错误截图。
这是一个post请求
{“username”:“test”,“password”:“test”,“simulate\u user”:“test”,“sourcetabledesc”:“testlist100”,“contacts”:[{“organization”:“ckt”,“workphone”:“12315423”,“firstname”:“tester0”,“zip”:“1231”,“stateprov”:“dasdas”,“lastname”:“torrance”,“address2”:“blablabla ble 1231”,“address3”:“blabla ble 1231”,“emailaddress”:“test”,“contactid”:“ds21029”,“country”:“united”,“title”:“driver”,“address1”:“blabla ble 1231”,“city”:“pepepe”},{“organization”:“ckt”,“workphone”:“12315423”,“firstname”:“tester1”,“zip”:“1231”,“stateprov”:“dasdas”,“lastname”:“torrance”,“address2”:“bla ble 1231”,“address3”:“blabla ble 1231”,“emailaddress”:“test”,“contactid”:“ds21029”,“country”:“united states”,“title”:“driver”,“address1”:“blabla ble 1231”,“city”:“pepepe”}]}

我的标题如下:

这是我应该得到的回应:(你认为这可能是回应中的单引号引起了冲突吗?)
{“data”:“{status':'processing','sourcetablename':'srcapi\u 20170714\u 13888489\u 7'}”,“call”:“unused”,“api\u version”:1,“encoding”:“utf-8”}

yquaqz18

yquaqz181#

原因之一可能是内容类型头。请检查一下。

相关问题