info. Retrieving information about last request   [3.4.4]


^curl:info[name]
^curl:info[]

Returns statistical information about last request. Result is either requested value or hash with all variables.

Supported argument values in alphabetical order:

Name

Type

libcurl analog

Description

appconnect_time

double

CURLINFO_APPCONNECT_TIME
Time from start until SSL/SSH handshake completed.
connect_time

double

CURLINFO_CONNECT_TIME
Time from start until remote host or proxy completed.
content_length_download

double

CURLINFO_CONTENT_LENGTH_DOWNLOAD
Content length from the Content-Length header.
content_length_upload

double

CURLINFO_CONTENT_LENGTH_UPLOAD
Upload size from the Content-Length header.
content_type

string

CURLINFO_CONTENT_TYPE
Content type from the Content-Type header.
effective_url

string

CURLINFO_EFFECTIVE_URL
Last used URL.
header_size

int

CURLINFO_HEADER_SIZE
Number of bytes of all headers received.
httpauth_avail

int

CURLINFO_HTTPAUTH_AVAIL
Available HTTP authentication methods.
namelookup_time

double

CURLINFO_NAMELOOKUP_TIME
Time from start until name resolving completed.
num_connects

int

CURLINFO_NUM_CONNECTS
Number of new successful connections used for previous transfer.
os_errno

int

CURLINFO_OS_ERRNO
The errno from the last failure to connect.
pretransfer_time

double

CURLINFO_PRETRANSFER_TIME
Time from start until just before the transfer begins.
primary_ip

string

CURLINFO_PRIMARY_IP
IP address of the last connection.
proxyauth_avail

int

CURLINFO_PROXYAUTH_AVAIL
Available HTTP proxy authentication methods.
redirect_count

string

CURLINFO_REDIRECT_COUNT
Total number of redirects that were followed.
redirect_time

double

CURLINFO_REDIRECT_TIME
Time taken for all redirect steps before the final transfer.
redirect_url

string

CURLINFO_REDIRECT_URL
URL a redirect would take you to, had you enabled redirects.
request_size

int

CURLINFO_REQUEST_SIZE
Number of bytes sent in the issued HTTP requests.
response_code

int

CURLINFO_RESPONSE_CODE
Last received response code.
size_download

double

CURLINFO_SIZE_DOWNLOAD
Number of bytes downloaded.
size_upload

double

CURLINFO_SIZE_UPLOAD
Number of bytes uploaded.
speed_download

double

CURLINFO_SPEED_DOWNLOAD
Average download speed.
speed_upload

double

CURLINFO_SPEED_UPLOAD
Average upload speed.
ssl_verifyresult

int

CURLINFO_SSL_VERIFYRESULT
Certificate verification result.
starttransfer_time

double

CURLINFO_STARTTRANSFER_TIME
Time from start until just when the first byte is received.
total_time

double

CURLINFO_TOTAL_TIME
Total time of previous transfer.




Copyright © 1997–2017 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 23.04.2016