Hi,
I'm sending raw HTML to the API with an ajax call in JS and I'm getting an odd response.
Not quite sure if I'm doing anything wrong.
Data:
http://pastebin.com/52zpvzxRMy code:
var printPage = function(){
$.ajax({
url: 'http://localhost:8080/var/proxy/pdfcrowd/rawhtml.json',
data: {
"src": data,
"username": username,
"key": apiToken
},
type: 'POST',
success: function(dataResponse){
console.log(dataResponse);
}, error: function(a,b,c) {
debug.log(a,b,c);
}
});
};
I'm getting a lot of those unknown things/question marks in the response.
The dataResponse:
http://pastebin.com/MFF8J8s6Thanks in advance!
Kind regards,
AD