Hello All,
Following is my Gatling code and POST request body. Getting the “The input message is not readable” response. I have read the documentation, but not sure what is wrong with the request definition.
.bodyParts(
StringBodyPart(“name”, “content”)
.contentType(“application/pdf”)
.fileName(“computerdatabase/ccpupload/Test.pdf”)
)
------WebKitFormBoundarypyzZDBVYhFan06by
Content-Disposition: form-data; name=“content”; filename=“Test.pdf”
Content-Type: application/pdf
%PDF-1.7
%
1 0 obj
<</Type/Catalog/Pages 2 0 R/Lang(en-US) /Metadata 12 0 R/ViewerPreferences 13 0 R>>
endobj
2 0 obj
<</Type/Pages/Count 1/Kids[ 3 0 R] >>
endobj
3 0 obj
<</Type/Page/Parent 2 0 R/Resources<</Font<</F1 5 0 R>>/ExtGState<</GS7 7 0 R/GS8 8 0 R>>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/MediaBox[ 0 0 612 792] /Contents 4 0 R/Group<</Type/Group/S/Transparency/CS/DeviceRGB>>/Tabs/S>>
endobj
…
29105
%%EOF
xref
0 0
trailer
<</Size 15/Root 1 0 R/Info 9 0 R/ID[<0DB784A711305F4FBF218D9D2F83A31B><0DB784A711305F4FBF218D9D2F83A31B>] /Prev 29105/XRefStm 28845>>
startxref
29561
%%EOF
------WebKitFormBoundarypyzZDBVYhFan06by–
Regards,
Bharath.