1

I was wondering if there is a limit to $_SERVER['REQUEST_URI'] itself since there seems to be no limit on storing string in a variable (php7). See this answer

So, if a user can somehow request using a very very large url (I know there are browser limits), will php store all of the request URI in $_SERVER['REQUEST_URI']?

EDIT: I am sorry this is not duplicate of this. The said question addresses browsers' limit. What if someone uses cURL?

Abdul Muiz
  • 111
  • 3
  • 7
  • 1
    Your webserver might also play a part in this - Apache has the [`LimitRequestLine`](http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline) directive, for instance, which defaults to ~8,000 characters – iainn Aug 29 '17 at 10:21
  • Yes, this seems like the answer. Thank you! – Abdul Muiz Aug 29 '17 at 10:29

0 Answers0