Contributions
Re: ReadyAPI is not reading a json file
Update : Hellorichie, Thanks for the recommandatipn. Fiddler is a great tool. But still couldn't find the right solution, can you tell the diffrence please : ReadyAPI request (we upgraded) POST ****** HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: multipart/form-data; boundary="----=_Part_0_1896884270.1608028565346" MIME-Version: 1.0 vaapiuser: *** Content-Length: 96806 Host: *** Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.2 (Java/15) ------=_Part Content-Type: application/json; name=***.json Content-Transfer-Encoding: binary Content-Disposition: form-data; name="***.json"; filename="***.json" {"documents": [ {*** ] } ------=_Part Content-Type: application/pdf; name=test.pdf Content-Transfer-Encoding: binary Content-Disposition: form-data; name="test.pdf"; filename="test.pdf" %PDF-1.3 ................................................................ Response {"status":"ERROR","message":"\"Error in document #1 - [DM_SYSOBJECT_E_NO_CONTENT_TYPE]error: \\\"No content type specified for DA sysobject.\\\"\"","documentIds":null} Postman Request POST **** HTTP/1.1 vaapiuser: ***** User-Agent: PostmanRuntime/7.26.8 Accept: */* Postman-Token: 6a419ee7-dfca-4543-834e-cdc23e6ca78c Host: *** Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Type: multipart/form-data; boundary=--------------------------264662573644671205416351 Content-Length: 96673 ---------------------------- Content-Disposition: form-data; name=""; filename="***.json" Content-Type: application/json {"documents": [ ***] } ---------------------------- Content-Disposition: form-data; name=""; filename="test.pdf" Content-Type: application/pdf %PDF-1.3 ...................................................................... Response {"status":"OK","message":"Document(s) have been tasklisted in ***.","documentIds":["***"]} Thanks for your help !2.3KViews0likes3Comments