1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| Available variables are at this point:
url_effective The URL that was fetched last. This is mostly meaningful if youve told curl to follow
location: headers.
http_code The numerical code that was found in the last retrieved HTTP(S) page.
http_connect The numerical code that was found in the last response (from a proxy) to a curl CONNECT
request. (Added in 7.12.4)
time_total The total time, in seconds, that the full operation lasted. The time will be displayed
with millisecond resolution.
time_namelookup
The time, in seconds, it took from the start until the name resolving was completed.
time_connect The time, in seconds, it took from the start until the connect to the remote host (or
proxy) was completed.
time_pretransfer
The time, in seconds, it took from the start until the file transfer is just about to
begin. This includes all pre-transfer commands and negotiations that are specific to the
particular protocol(s) involved.
time_redirect The time, in seconds, it took for all redirection steps include name lookup, connect,
pretransfer and transfer before final transaction was started. time_redirect shows the
complete execution time for multiple redirections. (Added in 7.12.3)
time_starttransfer
The time, in seconds, it took from the start until the first byte is just about to be
transferred. This includes time_pretransfer and also the time the server needs to calcu‐
late the result.
size_download The total amount of bytes that were downloaded.
size_upload The total amount of bytes that were uploaded.
size_header The total amount of bytes of the downloaded headers.
size_request The total amount of bytes that were sent in the HTTP request.
speed_download The average download speed that curl measured for the complete download.
speed_upload The average upload speed that curl measured for the complete upload.
content_type The Content-Type of the requested document, if there was any.
num_connects Number of new connects made in the recent transfer. (Added in 7.12.3)
num_redirects Number of redirects that were followed in the request. (Added in 7.12.3) |
Partager