Max length of query string in an AJAX GET request?

前端 未结 3 1997
长发绾君心
长发绾君心 2021-01-12 03:51

Is there/what is the maximum length of the query string when doing an AJAX GET request? More specifically, I am doing cross-domain AJAX using an image:

img =         


        
相关标签:
3条回答
  • 2021-01-12 04:31

    Max length for a GET is 2,048 characters =]

    0 讨论(0)
  • 2021-01-12 04:34

    Yes, Query Strings have a maximum length, IIRC it's 2048 chars, or something similar. Though specific implementations probably differ.

    Wikipedia has a little bit of info.

    0 讨论(0)
  • 2021-01-12 04:39

    There is no defined limit in any specification. The effective or prescribed limit is 2048 characters. Certain browsers and Webserver will have problems with longer.

    0 讨论(0)
提交回复
热议问题