Closed brianyang closed 7 years ago
it doesn't appear to need any headers. the request body should be json. it appears postman lets you send it as a urlencoded post request but that may not work elsewhere. here's working code:
req.send({
"data": '<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" border="0" data-ac-wrapper-id="2" width="1539" height="1240" class="anychart-ui-support" role="presentation" style="display: block;"></svg>'
, "dataType": "svg"
, "responseType": "file"
, "file-name": "any"
})
When I start the java server locally, and I make a post request, I get the following error:
Debug: internal, implementation, error Error: Error: got 400 response
here is my post request:
I'm just proxying to the export-server hosted on anycharts
when i try this same request in postman, it returns an image.
does anybody know what's happening?