Skip to content

Instantly share code, notes, and snippets.

@LogicSatinn
Created December 10, 2024 15:56
Show Gist options
  • Select an option

  • Save LogicSatinn/b0bf466d4fbc068d5937fb7cc8e0b8b4 to your computer and use it in GitHub Desktop.

Select an option

Save LogicSatinn/b0bf466d4fbc068d5937fb7cc8e0b8b4 to your computer and use it in GitHub Desktop.
Guzzle transfer stats unofficial docs
<?php
array (
'url' =>
array (
'name' => 'url',
'option' => 'CURLINFO_EFFECTIVE_URL',
'optionValue' => 1048577,
'desciption' => 'Get the last used URL',
),
'content_type' =>
array (
'name' => 'content_type',
'option' => 'CURLINFO_CONTENT_TYPE',
'optionValue' => 1048594,
'desciption' => 'Get Content-Type',
),
'http_code' =>
array (
'name' => 'http_code',
'option' => 'CURLINFO_HTTP_CODE',
'optionValue' => 2097154,
'desciption' => '<not found>',
),
'header_size' =>
array (
'name' => 'header_size',
'option' => 'CURLINFO_HEADER_SIZE',
'optionValue' => 2097163,
'desciption' => 'Get size of retrieved headers',
),
'request_size' =>
array (
'name' => 'request_size',
'option' => 'CURLINFO_REQUEST_SIZE',
'optionValue' => 2097164,
'desciption' => 'Get size of sent request',
),
'filetime' =>
array (
'name' => 'filetime',
'option' => 'CURLINFO_FILETIME',
'optionValue' => 2097166,
'desciption' => 'Get the remote time of the retrieved document',
),
'ssl_verify_result' =>
array (
'name' => 'ssl_verify_result',
'option' => 'CURLINFO_SSL_VERIFYRESULT',
'optionValue' => 2097165,
'desciption' => 'Get the result of the certificate verification',
),
'redirect_count' =>
array (
'name' => 'redirect_count',
'option' => 'CURLINFO_REDIRECT_COUNT',
'optionValue' => 2097172,
'desciption' => 'Get the number of redirects',
),
'total_time' =>
array (
'name' => 'total_time',
'option' => 'CURLINFO_TOTAL_TIME',
'optionValue' => 3145731,
'desciption' => 'Get total time of previous transfer',
),
'namelookup_time' =>
array (
'name' => 'namelookup_time',
'option' => 'CURLINFO_NAMELOOKUP_TIME',
'optionValue' => 3145732,
'desciption' => 'Get the name lookup time',
),
'connect_time' =>
array (
'name' => 'connect_time',
'option' => 'CURLINFO_CONNECT_TIME',
'optionValue' => 3145733,
'desciption' => 'Get the time until connect',
),
'pretransfer_time' =>
array (
'name' => 'pretransfer_time',
'option' => 'CURLINFO_PRETRANSFER_TIME',
'optionValue' => 3145734,
'desciption' => 'Get the time until the file transfer start',
),
'size_upload' =>
array (
'name' => 'size_upload',
'option' => 'CURLINFO_SIZE_UPLOAD',
'optionValue' => 3145735,
'desciption' => 'Get the number of uploaded bytes',
),
'size_download' =>
array (
'name' => 'size_download',
'option' => 'CURLINFO_SIZE_DOWNLOAD',
'optionValue' => 3145736,
'desciption' => 'Get the number of downloaded bytes',
),
'speed_download' =>
array (
'name' => 'speed_download',
'option' => 'CURLINFO_SPEED_DOWNLOAD',
'optionValue' => 3145737,
'desciption' => 'Get download speed',
),
'speed_upload' =>
array (
'name' => 'speed_upload',
'option' => 'CURLINFO_SPEED_UPLOAD',
'optionValue' => 3145738,
'desciption' => 'Get upload speed',
),
'download_content_length' =>
array (
'name' => 'download_content_length',
'option' => 'CURLINFO_CONTENT_LENGTH_DOWNLOAD',
'optionValue' => 3145743,
'desciption' => 'Get content-length of download',
),
'upload_content_length' =>
array (
'name' => 'upload_content_length',
'option' => 'CURLINFO_CONTENT_LENGTH_UPLOAD',
'optionValue' => 3145744,
'desciption' => 'Get the specified size of the upload',
),
'starttransfer_time' =>
array (
'name' => 'starttransfer_time',
'option' => 'CURLINFO_STARTTRANSFER_TIME',
'optionValue' => 3145745,
'desciption' => 'Get the time until the first byte is received',
),
'redirect_time' =>
array (
'name' => 'redirect_time',
'option' => 'CURLINFO_REDIRECT_TIME',
'optionValue' => 3145747,
'desciption' => 'Get the time for all redirection steps',
),
'redirect_url' =>
array (
'name' => 'redirect_url',
'option' => 'CURLINFO_REDIRECT_URL',
'optionValue' => 1048607,
'desciption' => 'Get the URL a redirect would go to',
),
'primary_ip' =>
array (
'name' => 'primary_ip',
'option' => 'CURLINFO_PRIMARY_IP',
'optionValue' => 1048608,
'desciption' => 'Get IP address of last connection',
),
'certinfo' =>
array (
'name' => 'certinfo',
'option' => 'CURLINFO_CERTINFO',
'optionValue' => 4194338,
'desciption' => 'Get the TLS certificate chain',
),
'primary_port' =>
array (
'name' => 'primary_port',
'option' => 'CURLINFO_PRIMARY_PORT',
'optionValue' => 2097192,
'desciption' => 'Get the latest destination port number',
),
'local_ip' =>
array (
'name' => 'local_ip',
'option' => 'CURLINFO_LOCAL_IP',
'optionValue' => 1048617,
'desciption' => 'Get local IP address of last connection',
),
'local_port' =>
array (
'name' => 'local_port',
'option' => 'CURLINFO_LOCAL_PORT',
'optionValue' => 2097194,
'desciption' => 'Get the latest local port number',
),
'http_version' =>
array (
'name' => 'http_version',
'option' => 'CURLINFO_HTTP_VERSION',
'optionValue' => 2097198,
'desciption' => 'Get the http version used in the connection',
),
'protocol' =>
array (
'name' => 'protocol',
'option' => 'CURLINFO_PROTOCOL',
'optionValue' => 2097200,
'desciption' => 'Get the protocol used in the connection',
),
'ssl_verifyresult' =>
array (
'name' => 'ssl_verifyresult',
'option' => 'CURLINFO_PROXY_SSL_VERIFYRESULT',
'optionValue' => 2097199,
'desciption' => 'Get the result of the proxy certificate verification',
),
'scheme' =>
array (
'name' => 'scheme',
'option' => 'CURLINFO_SCHEME',
'optionValue' => 1048625,
'desciption' => 'Get the URL scheme (sometimes called protocol) used in the connection',
),
'appconnect_time_us' =>
array (
'name' => 'appconnect_time_us',
'option' => 'CURLINFO_APPCONNECT_TIME_T',
'optionValue' => 6291512,
'desciption' => 'Get the time until the SSL/SSH handshake is completed',
),
'connect_time_us' =>
array (
'name' => 'connect_time_us',
'option' => 'CURLINFO_CONNECT_TIME_T',
'optionValue' => 6291508,
'desciption' => 'Get the time until connect',
),
'namelookup_time_us' =>
array (
'name' => 'namelookup_time_us',
'option' => 'CURLINFO_NAMELOOKUP_TIME_T',
'optionValue' => 6291507,
'desciption' => 'Get the name lookup time in microseconds',
),
'pretransfer_time_us' =>
array (
'name' => 'pretransfer_time_us',
'option' => 'CURLINFO_PRETRANSFER_TIME_T',
'optionValue' => 6291509,
'desciption' => 'Get the time until the file transfer start',
),
'redirect_time_us' =>
array (
'name' => 'redirect_time_us',
'option' => 'CURLINFO_REDIRECT_TIME_T',
'optionValue' => 6291511,
'desciption' => 'Get the time for all redirection steps',
),
'starttransfer_time_us' =>
array (
'name' => 'starttransfer_time_us',
'option' => 'CURLINFO_STARTTRANSFER_TIME_T',
'optionValue' => 6291510,
'desciption' => 'Get the time until the first byte is received',
),
'total_time_us' =>
array (
'name' => 'total_time_us',
'option' => 'CURLINFO_TOTAL_TIME_T',
'optionValue' => 6291506,
'desciption' => 'Get total time of previous transfer in microseconds',
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment