more information from 400 error
When Gatlin posts this XML to the server, It adds these below 4 lines before the actual xml content
--lBV9T3G0fxXw2tPgwQBDlCAtgnRZYRvq-25LtRP
Content-Disposition: form-data; name="data"; filename="test_file.xml"
Content-Type: application/xml
Content-Transfer-Encoding: binary
So the server responds with 400 with below stack
Content is not allowed in prolog.
javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.]
When cURL sends the same xml it doesn't add those information so it works just fine. Can anybody provide me with an insight what i need to change.