note 128622 added to function.curl-getinfo

From: Date: Mon, 19 Jun 2023 00:46:09 +0000
Subject: note 128622 added to function.curl-getinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-220581@lists.php.net to get a copy of this message
A note about $curl_info['header_size'] (in response to the example above). Note that the total includes the size of any received headers suppressed by CURLOPT_SUPPRESS_CONNECT_HEADERS (see: https://curl.se/libcurl/c/CURLINFO_HEADER_SIZE.html) so if you are using a proxy which adds additional headers along with this option, $curl_info['header_size'] will give you the wrong string index based on the headers available in PHP. i.e., it will eat in to the start of the response instead of being the index of the beginning of the response. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 203.219.153.186) ---- Manual Page -- https://php.net/manual/en/function.curl-getinfo.php Edit -- https://main.php.net/note/edit/128622 Del: integrated -- https://main.php.net/note/delete/128622/integrated Del: useless -- https://main.php.net/note/delete/128622/useless Del: bad code -- https://main.php.net/note/delete/128622/bad+code Del: spam -- https://main.php.net/note/delete/128622/spam Del: non-english -- https://main.php.net/note/delete/128622/non-english Del: in docs -- https://main.php.net/note/delete/128622/in+docs Del: other reasons-- https://main.php.net/note/delete/128622 Reject -- https://main.php.net/note/reject/128622 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220581) next »