This is an archived forum post. The information may be outdated. Contact us if you have any
400 Bad Request - Malformed API call
wrote on 2015-06-25:
We have a form that is standard HTML div's and tables with about 20 form input's. because we have Jquery dynamically assigning values to some form fields based on the inputs of other form fields the new dynamically generated values are not seen as part of the DOM. So we are trying to grab the entire HTML into a variable and send it to the API via Ajax. Below is the code being used to capture the page as well as the POST data being sent to the API.
Our problem is that pdfcrowd is returning a 400 Bad Request response. I assume the POST data is malformed, can you look at this and tell me what I need to change to gain functionality this way?
1.) RAW HTML is acquired this way via Jquery capture of onclick of a button: