How can I deal with HTTP GET query string length limitations and still want to be RESTful?

后端 未结 6 1668
栀梦
栀梦 2020-12-04 06:21

As stated in http://www.boutell.com/newfaq/misc/urllength.html, HTTP query string have limited length. It can be limited by the client (Firefox, IE, ...), the server (Apache

6条回答
  •  醉话见心
    2020-12-04 06:56

    This is an easy one. Use POST. HTTP doesn't impose a limit on the URL length for GET but servers do. Be pragmatic and work around that with a POST.

    You could also use a GET body (that is allowed) but that's a double-whammy in that it is not correct usage and probably going to have server problems.

提交回复
热议问题