简体   繁体   中英

How do I send a long JSON string via a GET/POST request in IE8?

I have a long JSON string that I want to send from the front-end to PHP on the back-end, but it doesn't seem to work in IE8 because the string exceeds the 2,048 character limit. The request gets cut off regardless of whether I use a GET request or a POST request.

Are there any ways to get around this limitation?
Thank you.


Edit: To save time reading, the solution is to use POST instead of GET. POST was in fact working, but I had another error in my code, which led me to believe that it wasn't working.

You should just drop the support to IE8.

But, if you really want to use IE8, are you sure you can't use POST for that?

According to this , the limit is on the URL length, but shouldn't affect the POST length (that's what I made of what's written there, perhaps I'm wrong; but I don't have any IE8 installed, so I can't test that).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM