I got the error:
request failed: URI too long (longer than 8190)
I’ve seen other posts on StackOverflow for this one. Those posts recommend:
- Not changing Apache settings (agree)
- Using post, not get
- Not using
jsonpwith post
I’m using jQuery’s AJAX to POST:
$.ajax({
url: "test.php",
dataType: "json",
data: paras,
type: "POST",
success: function(ret){callback(ret);}
});
It’s my impression you can use json just not jsonp. Correct? If so, why might I still be getting the error?
You should try setting proccessData to false.
From the docs:
so to prevent the data being added to the url:
Honestly, I thought this was automatic, but since your url is too long it’s worth a shot.