note 126213 added to reserved.variables.httpresponseheader

From: Date: Fri, 02 Jul 2021 23:10:49 +0000
Subject: note 126213 added to reserved.variables.httpresponseheader
Groups: php.notes 
Request: Send a blank email to php-notes+get-216572@lists.php.net to get a copy of this message
It seems that, if the server returns an HTTP/1.1 100 Continue, the variable $http_response_header is unset. This corner case may be difficult to be detected. For this and other reasons I recommend PHP cURL, instead of file_get_contents(). ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 93.45.64.142) ---- Manual Page -- https://php.net/manual/en/reserved.variables.httpresponseheader.php Edit -- https://main.php.net/note/edit/126213 Del: integrated -- https://main.php.net/note/delete/126213/integrated Del: useless -- https://main.php.net/note/delete/126213/useless Del: bad code -- https://main.php.net/note/delete/126213/bad+code Del: spam -- https://main.php.net/note/delete/126213/spam Del: non-english -- https://main.php.net/note/delete/126213/non-english Del: in docs -- https://main.php.net/note/delete/126213/in+docs Del: other reasons-- https://main.php.net/note/delete/126213 Reject -- https://main.php.net/note/reject/126213 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216572) next »