php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #81125 $_SERVER['REQUEST_URI']
Submitted: 2021-06-10 14:45 UTC Modified: 2021-06-20 04:22 UTC
From: ssimo3 at lsuhsc dot edu Assigned:
Status: No Feedback Package: Documentation problem
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
42 - 36 = ?
Subscribe to this entry?

 
 [2021-06-10 14:45 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-10 19:45 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2021-06-10 19:45 UTC] 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-20 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 14:01:31 2024 UTC