note 128541 added to function.http-response-code

From: Date: Mon, 15 May 2023 21:14:01 +0000
Subject: note 128541 added to function.http-response-code
Groups: php.notes 
Request: Send a blank email to php-notes+get-220496@lists.php.net to get a copy of this message
function httpResponse($curl){ if (!curl_errno($curl)) { switch ($http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE)) { case 200: echo "Retornou $http_code \n";# OK return $http_code; break; default: echo 'Unexpected HTTP code: ', $http_code, "\n"; return $http_code; } } } $retorno = httpResponse($curl); echo $retorno; ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 143.137.72.102) ---- Manual Page -- https://php.net/manual/en/function.http-response-code.php Edit -- https://main.php.net/note/edit/128541 Del: integrated -- https://main.php.net/note/delete/128541/integrated Del: useless -- https://main.php.net/note/delete/128541/useless Del: bad code -- https://main.php.net/note/delete/128541/bad+code Del: spam -- https://main.php.net/note/delete/128541/spam Del: non-english -- https://main.php.net/note/delete/128541/non-english Del: in docs -- https://main.php.net/note/delete/128541/in+docs Del: other reasons-- https://main.php.net/note/delete/128541 Reject -- https://main.php.net/note/reject/128541 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220496) next »