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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ssimo3 at lsuhsc dot edu
New email:
PHP Version: OS:

 

 [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 20:01:29 2024 UTC