note 129081 added to reserved.variables.httpresponseheader
| From: | carlo at tnx dot it | Date: | Fri, 01 Dec 2023 11:22:16 +0000 |
| Subject: | note 129081 added to reserved.variables.httpresponseheader | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221035@lists.php.net to get a copy of this message | ||
If no connection is made, $http_response_header is not reset! (tested on php 7.0/8.1)
file_get_contents("https://www.google.com/");
file_get_contents("https://www.google.fail/");
print_r($http_response_header);//Array ( [0] => HTTP/1.1 200 OK ....
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 79.8.244.233)
----
Manual Page -- https://php.net/manual/en/reserved.variables.httpresponseheader.php
Edit -- https://main.php.net/note/edit/129081
Del: integrated -- https://main.php.net/note/delete/129081/integrated
Del: useless -- https://main.php.net/note/delete/129081/useless
Del: bad code -- https://main.php.net/note/delete/129081/bad+code
Del: spam -- https://main.php.net/note/delete/129081/spam
Del: non-english -- https://main.php.net/note/delete/129081/non-english
Del: in docs -- https://main.php.net/note/delete/129081/in+docs
Del: other reasons-- https://main.php.net/note/delete/129081
Reject -- https://main.php.net/note/reject/129081
Search -- https://main.php.net/manage/user-notes.php