Doc #81125 [Fbk->NoF]: $_SERVER['REQUEST_URI']

From: Date: Sun, 20 Jun 2021 04:22:24 +0000
Subject: Doc #81125 [Fbk->NoF]: $_SERVER['REQUEST_URI']
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18883@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81125&edit=1

 ID:               81125
 Updated by:       php-bugs@lists.php.net
 Reported by:      ssimo3 at lsuhsc dot edu
 Summary:          $_SERVER['REQUEST_URI']
-Status:           Feedback
+Status:           No Feedback
 Type:             Documentation Problem
 Package:          Documentation problem
 Operating System: Windows
 PHP Version:      Irrelevant
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2021-06-10 19:45:46] requinix@php.net

The REQUEST_URI is inherited from CGI and comes from the HTTP standard(s). It's "always
relative" in the sense that no PHP developer ever writes HTTP proxy servers or has to deal with
CONNECT requests.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages
https://datatracker.ietf.org/doc/html/rfc7230#section-5.3
https://www.tutorialspoint.com/http/http_requests.htm

------------------------------------------------------------------------
[2021-06-10 14:45:41] ssimo3 at lsuhsc dot edu

Description:
------------
'REQUEST_URI'
The URI which was given in order to access this page; for instance, '/index.html'.

According to Stack Overflow
(https://stackoverflow.com/questions/4730798/what-is-the-difference-between-serverrequest-uri-and-getq),
the value $_SERVER['REQUEST_URI'] is always relative to the hostname. It is true that you
did state, "for instance, '/index.html.'" However, I don't see how that
makes it clear that the value is ALWAYS relative.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=81125&edit=1


Thread (3 messages)

« previous php.doc.bugs (#18883) next »