Req #73425 [Com]: get_headers() and default GET requests
| From: | rtrtrtrtrt at dfdfdfdf dot dfd | Date: | Thu, 19 Aug 2021 13:42:17 +0000 |
| Subject: | Req #73425 [Com]: get_headers() and default GET requests | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235957@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73425&edit=1
ID: 73425
Comment by: rtrtrtrtrt at dfdfdfdf dot dfd
Reported by: spam2 at rhsoft dot net
Summary: get_headers() and default GET requests
Status: Closed
Type: Feature/Change Request
Package: Performance problem
PHP Version: 7.0.12
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
what insane idiots breaking ETAG / "Not Modified"
Previous Comments:
------------------------------------------------------------------------
[2021-08-19 13:35:28] cmb@php.net
$ curl -I https://design.google.com/icons/
HTTP/1.1 405 Method Not Allowed
------------------------------------------------------------------------
[2021-08-19 13:28:49] rtrtrtrtrt at dfdfdfdf dot dfd
> Can you prove your claim? ;)
easily: try to limit methods in httpd to GET/POST and HEAD will still work
it's nonsense to fetch the body when you are only interested in the headers
------------------------------------------------------------------------
[2021-08-19 13:26:25] cmb@php.net
> what's the point of that insane default while no server refuses
> HEAD requests
Can you prove your claim? ;)
Anyhow, this is not a bug, but rather a feature request, and
because a $context parameter is available as of PHP 7.1.0, I
consider it sufficiently fulfilled.
I'm not claiming that GET is a particularly reasonable default
here, but changing the long standing default would require the RFC
process[1]; feel free to pursue it.
[1] <https://wiki.php.net/rfc/howto>
------------------------------------------------------------------------
[2018-03-25 21:23:43] cmb@php.net
> it's not the only function which is lacking basic infos like
> params over time and even wrong types are in general only fixed
> for the english version
Well, the English docs are the reference, so they are written,
fixed and updated first. The respective translation teams are
supposed to "sync with EN" as soon as time permits. It would be
good if the translations pointed out whether they are outdated,
but unfortunately PhD does not support that yet. Anyhow, many
translations could need some help (the German translation
certainly does!), so consider to submit patches via
<https://edit.php.net/>.
FTR: the $context parameter has been documented[1], and the German
translation has been synced[2].
[1] <http://svn.php.net/viewvc?view=revision&revision=344567>
[2] <http://svn.php.net/viewvc?view=revision&revision=344568>
------------------------------------------------------------------------
[2018-03-25 17:13:29] spam2 at rhsoft dot net
cool, thanks
whoever is adapting the manual shoul also think about the other languages and *at least* adopt the
params and types on top (it's not the only function which is lacking basic infos like params
over time and even wrong types are in general only fixed for the english version)
http://php.net/manual/en/function.get-headers.php
http://php.net/manual/de/function.get-headers.php
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=73425
--
Edit this bug report at https://bugs.php.net/bug.php?id=73425&edit=1