Maximum length of HTTP GET request

前端 未结 7 1993
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-21 05:24

What\'s the maximum length of an HTTP GET request?

Is there a response error defined that the server can/should return if it receives a GET request that exceeds this

7条回答
  •  既然无缘
    2020-11-21 05:47

    Yes. There isn't any limit on a GET request.

    I am able to send ~4000 characters as part of the query string using both the Chrome browser and curl command.

    I am using Tomcat 8.x server which has returned the expected 200 OK response.

    Here is the screenshot of a Google Chrome HTTP request (hiding the endpoint I tried due to security reasons):

    RESPONSE

提交回复
热议问题