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

From: Date: Thu, 10 Jun 2021 19:45:46 +0000
Subject: Doc #81125 [Opn->Fbk]: $_SERVER['REQUEST_URI']
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18848@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:         requinix@php.net
 Reported by:        ssimo3 at lsuhsc dot edu
 Summary:            $_SERVER['REQUEST_URI']
-Status:             Open
+Status:             Feedback
 Type:               Documentation Problem
 Package:            Documentation problem
 Operating System:   Windows
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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 (#18848) next »