2006-03-22 06:30:03 +08:00
|
|
|
.\" **************************************************************************
|
|
|
|
.\" * _ _ ____ _
|
|
|
|
.\" * Project ___| | | | _ \| |
|
|
|
|
.\" * / __| | | | |_) | |
|
|
|
|
.\" * | (__| |_| | _ <| |___
|
|
|
|
.\" * \___|\___/|_| \_\_____|
|
|
|
|
.\" *
|
2022-05-23 14:42:23 +08:00
|
|
|
.\" * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2006-03-22 06:30:03 +08:00
|
|
|
.\" *
|
|
|
|
.\" * This software is licensed as described in the file COPYING, which
|
|
|
|
.\" * you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
.\" * are also available at https://curl.se/docs/copyright.html.
|
2006-03-22 06:30:03 +08:00
|
|
|
.\" *
|
|
|
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
.\" * copies of the Software, and permit persons to whom the Software is
|
|
|
|
.\" * furnished to do so, under the terms of the COPYING file.
|
|
|
|
.\" *
|
|
|
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
.\" * KIND, either express or implied.
|
|
|
|
.\" *
|
|
|
|
.\" * SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
.\" *
|
2006-03-22 06:30:03 +08:00
|
|
|
.\" **************************************************************************
|
2002-03-04 18:09:48 +08:00
|
|
|
.\"
|
2009-02-12 05:47:14 +08:00
|
|
|
.TH curl_easy_getinfo 3 "11 Feb 2009" "libcurl 7.19.4" "libcurl Manual"
|
2002-03-04 18:09:48 +08:00
|
|
|
.SH NAME
|
2003-11-04 21:27:28 +08:00
|
|
|
curl_easy_getinfo - extract information from a curl handle
|
2002-03-04 18:09:48 +08:00
|
|
|
.SH SYNOPSIS
|
2021-11-26 21:20:18 +08:00
|
|
|
.nf
|
|
|
|
#include <curl/curl.h>
|
2003-11-04 21:27:28 +08:00
|
|
|
|
2021-11-26 21:20:18 +08:00
|
|
|
CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ... );
|
|
|
|
.fi
|
2002-03-04 18:09:48 +08:00
|
|
|
.SH DESCRIPTION
|
2021-11-26 15:46:59 +08:00
|
|
|
Request internal information from the curl session with this function. The
|
2004-12-15 06:47:13 +08:00
|
|
|
third argument \fBMUST\fP be a pointer to a long, a pointer to a char *, a
|
|
|
|
pointer to a struct curl_slist * or a pointer to a double (as this
|
2021-11-26 15:46:59 +08:00
|
|
|
documentation describes further down). The data pointed-to will be filled in
|
|
|
|
accordingly and can be relied upon only if the function returns CURLE_OK. Use
|
2015-08-16 05:56:28 +08:00
|
|
|
this function AFTER a performed transfer if you want to get transfer related
|
2005-08-18 14:14:17 +08:00
|
|
|
data.
|
2004-08-25 04:36:38 +08:00
|
|
|
|
|
|
|
You should not free the memory returned by this function unless it is
|
2007-05-04 03:12:45 +08:00
|
|
|
explicitly mentioned below.
|
2002-03-04 18:09:48 +08:00
|
|
|
.SH AVAILABLE INFORMATION
|
2004-03-25 05:40:45 +08:00
|
|
|
The following information can be extracted:
|
2020-07-13 15:58:28 +08:00
|
|
|
.IP CURLINFO_EFFECTIVE_METHOD
|
|
|
|
Last used HTTP method.
|
|
|
|
See \fICURLINFO_EFFECTIVE_METHOD(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_EFFECTIVE_URL
|
2015-09-25 14:37:42 +08:00
|
|
|
Last used URL.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_EFFECTIVE_URL(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_RESPONSE_CODE
|
2015-09-25 14:37:42 +08:00
|
|
|
Last received response code.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_RESPONSE_CODE(3)\fP
|
2021-02-19 21:57:19 +08:00
|
|
|
.IP CURLINFO_REFERER
|
|
|
|
Referrer header.
|
|
|
|
See \fICURLINFO_REFERER(3)\fP
|
2004-12-22 20:31:55 +08:00
|
|
|
.IP CURLINFO_HTTP_CONNECTCODE
|
2015-09-25 14:37:42 +08:00
|
|
|
Last proxy CONNECT response code.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_HTTP_CONNECTCODE(3)\fP
|
2016-05-11 20:23:37 +08:00
|
|
|
.IP CURLINFO_HTTP_VERSION
|
|
|
|
The http version used in the connection.
|
|
|
|
See \fICURLINFO_HTTP_VERSION(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_FILETIME
|
2018-01-26 06:05:24 +08:00
|
|
|
Remote time of the retrieved document. See \fICURLINFO_FILETIME(3)\fP
|
|
|
|
.IP CURLINFO_FILETIME_T
|
|
|
|
Remote time of the retrieved document. See \fICURLINFO_FILETIME_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_TOTAL_TIME
|
2015-09-25 14:37:42 +08:00
|
|
|
Total time of previous transfer.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_TOTAL_TIME(3)\fP
|
2018-05-17 19:37:36 +08:00
|
|
|
.IP CURLINFO_TOTAL_TIME_T
|
|
|
|
Total time of previous transfer.
|
|
|
|
See \fICURLINFO_TOTAL_TIME_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_NAMELOOKUP_TIME
|
2015-09-25 14:37:42 +08:00
|
|
|
Time from start until name resolving completed.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_NAMELOOKUP_TIME(3)\fP
|
2018-05-17 19:37:36 +08:00
|
|
|
.IP CURLINFO_NAMELOOKUP_TIME_T
|
|
|
|
Time from start until name resolving completed.
|
|
|
|
See \fICURLINFO_NAMELOOKUP_TIME_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_CONNECT_TIME
|
2015-09-25 14:37:42 +08:00
|
|
|
Time from start until remote host or proxy completed.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_CONNECT_TIME(3)\fP
|
2018-05-17 19:37:36 +08:00
|
|
|
.IP CURLINFO_CONNECT_TIME_T
|
|
|
|
Time from start until remote host or proxy completed.
|
|
|
|
See \fICURLINFO_CONNECT_TIME_T(3)\fP
|
2008-07-03 14:56:03 +08:00
|
|
|
.IP CURLINFO_APPCONNECT_TIME
|
2015-09-25 14:37:42 +08:00
|
|
|
Time from start until SSL/SSH handshake completed.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_APPCONNECT_TIME(3)\fP
|
2018-05-17 19:37:36 +08:00
|
|
|
.IP CURLINFO_APPCONNECT_TIME_T
|
|
|
|
Time from start until SSL/SSH handshake completed.
|
|
|
|
See \fICURLINFO_APPCONNECT_TIME_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_PRETRANSFER_TIME
|
2015-09-25 14:37:42 +08:00
|
|
|
Time from start until just before the transfer begins.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_PRETRANSFER_TIME(3)\fP
|
2018-05-17 19:37:36 +08:00
|
|
|
.IP CURLINFO_PRETRANSFER_TIME_T
|
|
|
|
Time from start until just before the transfer begins.
|
|
|
|
See \fICURLINFO_PRETRANSFER_TIME_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_STARTTRANSFER_TIME
|
2015-09-25 14:37:42 +08:00
|
|
|
Time from start until just when the first byte is received.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_STARTTRANSFER_TIME(3)\fP
|
2018-05-17 19:37:36 +08:00
|
|
|
.IP CURLINFO_STARTTRANSFER_TIME_T
|
|
|
|
Time from start until just when the first byte is received.
|
|
|
|
See \fICURLINFO_STARTTRANSFER_TIME_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_REDIRECT_TIME
|
2015-09-25 14:37:42 +08:00
|
|
|
Time taken for all redirect steps before the final transfer.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_REDIRECT_TIME(3)\fP
|
2018-05-17 19:37:36 +08:00
|
|
|
.IP CURLINFO_REDIRECT_TIME_T
|
|
|
|
Time taken for all redirect steps before the final transfer.
|
|
|
|
See \fICURLINFO_REDIRECT_TIME_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_REDIRECT_COUNT
|
2015-09-25 14:37:42 +08:00
|
|
|
Total number of redirects that were followed.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_REDIRECT_COUNT(3)\fP
|
2008-05-01 05:20:08 +08:00
|
|
|
.IP CURLINFO_REDIRECT_URL
|
2015-09-25 14:37:42 +08:00
|
|
|
URL a redirect would take you to, had you enabled redirects.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_REDIRECT_URL(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_SIZE_UPLOAD
|
2017-06-15 21:26:00 +08:00
|
|
|
(Deprecated) Number of bytes uploaded.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_SIZE_UPLOAD(3)\fP
|
2017-06-15 21:26:00 +08:00
|
|
|
.IP CURLINFO_SIZE_UPLOAD_T
|
|
|
|
Number of bytes uploaded.
|
|
|
|
See \fICURLINFO_SIZE_UPLOAD_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_SIZE_DOWNLOAD
|
2017-06-15 21:26:00 +08:00
|
|
|
(Deprecated) Number of bytes downloaded.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_SIZE_DOWNLOAD(3)\fP
|
2017-06-15 21:26:00 +08:00
|
|
|
.IP CURLINFO_SIZE_DOWNLOAD_T
|
|
|
|
Number of bytes downloaded.
|
|
|
|
See \fICURLINFO_SIZE_DOWNLOAD_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_SPEED_DOWNLOAD
|
2017-06-15 21:26:00 +08:00
|
|
|
(Deprecated) Average download speed.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_SPEED_DOWNLOAD(3)\fP
|
2017-06-15 21:26:00 +08:00
|
|
|
.IP CURLINFO_SPEED_DOWNLOAD_T
|
|
|
|
Average download speed.
|
|
|
|
See \fICURLINFO_SPEED_DOWNLOAD_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_SPEED_UPLOAD
|
2017-06-15 21:26:00 +08:00
|
|
|
(Deprecated) Average upload speed.
|
2015-08-31 21:27:58 +08:00
|
|
|
See \fICURLINFO_SPEED_UPLOAD(3)\fP
|
2017-06-15 21:26:00 +08:00
|
|
|
.IP CURLINFO_SPEED_UPLOAD_T
|
|
|
|
Average upload speed.
|
|
|
|
See \fICURLINFO_SPEED_UPLOAD_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_HEADER_SIZE
|
2015-09-25 14:37:42 +08:00
|
|
|
Number of bytes of all headers received.
|
2015-09-02 06:00:53 +08:00
|
|
|
See \fICURLINFO_HEADER_SIZE(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_REQUEST_SIZE
|
2015-09-25 14:37:42 +08:00
|
|
|
Number of bytes sent in the issued HTTP requests.
|
2015-09-02 06:00:53 +08:00
|
|
|
See \fICURLINFO_REQUEST_SIZE(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_SSL_VERIFYRESULT
|
2015-09-25 14:37:42 +08:00
|
|
|
Certificate verification result.
|
2015-09-02 06:00:53 +08:00
|
|
|
See \fICURLINFO_SSL_VERIFYRESULT(3)\fP
|
2020-08-24 14:39:29 +08:00
|
|
|
.IP CURLINFO_PROXY_ERROR
|
|
|
|
Detailed proxy error.
|
|
|
|
See \fICURLINFO_PROXY_ERROR(3)\fP
|
2016-11-17 01:49:15 +08:00
|
|
|
.IP CURLINFO_PROXY_SSL_VERIFYRESULT
|
|
|
|
Proxy certificate verification result.
|
|
|
|
See \fICURLINFO_PROXY_SSL_VERIFYRESULT(3)\fP
|
2004-12-14 04:14:04 +08:00
|
|
|
.IP CURLINFO_SSL_ENGINES
|
2015-09-25 14:37:42 +08:00
|
|
|
A list of OpenSSL crypto engines.
|
2015-09-02 06:00:53 +08:00
|
|
|
See \fICURLINFO_SSL_ENGINES(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_CONTENT_LENGTH_DOWNLOAD
|
2017-06-15 21:26:00 +08:00
|
|
|
(Deprecated) Content length from the Content-Length header.
|
2015-09-02 06:00:53 +08:00
|
|
|
See \fICURLINFO_CONTENT_LENGTH_DOWNLOAD(3)\fP
|
2017-06-15 21:26:00 +08:00
|
|
|
.IP CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
|
|
|
|
Content length from the Content-Length header.
|
|
|
|
See \fICURLINFO_CONTENT_LENGTH_DOWNLOAD_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_CONTENT_LENGTH_UPLOAD
|
2017-06-15 21:26:00 +08:00
|
|
|
(Deprecated) Upload size. See \fICURLINFO_CONTENT_LENGTH_UPLOAD(3)\fP
|
|
|
|
.IP CURLINFO_CONTENT_LENGTH_UPLOAD_T
|
2021-11-26 15:46:59 +08:00
|
|
|
Upload size. See \fICURLINFO_CONTENT_LENGTH_UPLOAD_T(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_CONTENT_TYPE
|
2015-09-25 14:37:42 +08:00
|
|
|
Content type from the Content-Type header.
|
2015-09-02 06:00:53 +08:00
|
|
|
See \fICURLINFO_CONTENT_TYPE(3)\fP
|
2019-08-06 17:30:08 +08:00
|
|
|
.IP CURLINFO_RETRY_AFTER
|
|
|
|
The value from the from the Retry-After header.
|
|
|
|
See \fICURLINFO_RETRY_AFTER(3)\fP
|
2003-11-04 21:27:28 +08:00
|
|
|
.IP CURLINFO_PRIVATE
|
2015-09-25 14:37:42 +08:00
|
|
|
User's private data pointer.
|
2015-09-02 06:00:53 +08:00
|
|
|
See \fICURLINFO_PRIVATE(3)\fP
|
2003-12-18 21:33:14 +08:00
|
|
|
.IP CURLINFO_HTTPAUTH_AVAIL
|
2015-09-25 14:37:42 +08:00
|
|
|
Available HTTP authentication methods.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_HTTPAUTH_AVAIL(3)\fP
|
2003-12-18 21:33:14 +08:00
|
|
|
.IP CURLINFO_PROXYAUTH_AVAIL
|
2015-09-25 14:37:42 +08:00
|
|
|
Available HTTP proxy authentication methods.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_PROXYAUTH_AVAIL(3)\fP
|
2004-10-01 05:01:23 +08:00
|
|
|
.IP CURLINFO_OS_ERRNO
|
2015-09-25 14:37:42 +08:00
|
|
|
The errno from the last failure to connect.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_OS_ERRNO(3)\fP
|
2004-10-19 23:30:08 +08:00
|
|
|
.IP CURLINFO_NUM_CONNECTS
|
2015-09-25 14:37:42 +08:00
|
|
|
Number of new successful connections used for previous transfer.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_NUM_CONNECTS(3)\fP
|
2008-06-07 01:33:35 +08:00
|
|
|
.IP CURLINFO_PRIMARY_IP
|
2015-09-25 14:37:42 +08:00
|
|
|
IP address of the last connection.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_PRIMARY_IP(3)\fP
|
2010-06-05 06:29:09 +08:00
|
|
|
.IP CURLINFO_PRIMARY_PORT
|
2015-09-25 14:37:42 +08:00
|
|
|
Port of the last connection.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_PRIMARY_PORT(3)\fP
|
2010-06-05 06:29:09 +08:00
|
|
|
.IP CURLINFO_LOCAL_IP
|
2015-09-25 14:37:42 +08:00
|
|
|
Local-end IP address of last connection.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_LOCAL_IP(3)\fP
|
2010-06-05 06:29:09 +08:00
|
|
|
.IP CURLINFO_LOCAL_PORT
|
2015-09-25 14:37:42 +08:00
|
|
|
Local-end port of last connection.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_LOCAL_PORT(3)\fP
|
2005-07-28 06:17:14 +08:00
|
|
|
.IP CURLINFO_COOKIELIST
|
2015-09-25 14:37:42 +08:00
|
|
|
List of all known cookies.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_COOKIELIST(3)\fP
|
2006-02-12 06:35:16 +08:00
|
|
|
.IP CURLINFO_LASTSOCKET
|
2022-10-12 22:43:31 +08:00
|
|
|
(Deprecated) Last socket used.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_LASTSOCKET(3)\fP
|
2015-08-21 16:29:05 +08:00
|
|
|
.IP CURLINFO_ACTIVESOCKET
|
2015-09-25 14:37:42 +08:00
|
|
|
The session's active socket.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_ACTIVESOCKET(3)\fP
|
2006-03-22 06:30:03 +08:00
|
|
|
.IP CURLINFO_FTP_ENTRY_PATH
|
2015-09-25 14:37:42 +08:00
|
|
|
The entry path after logging in to an FTP server.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_FTP_ENTRY_PATH(3)\fP
|
2022-05-23 14:42:23 +08:00
|
|
|
.IP CURLINFO_CAPATH
|
|
|
|
Get the default value for \fICURLOPT_CAPATH(3)\fP.
|
|
|
|
See \fICURLINFO_CAPATH(3)\fP
|
|
|
|
.IP CURLINFO_CAINFO
|
|
|
|
Get the default value for \fICURLOPT_CAINFO(3)\fP.
|
|
|
|
See \fICURLINFO_CAINFO(3)\fP
|
2008-10-16 19:35:19 +08:00
|
|
|
.IP CURLINFO_CERTINFO
|
2015-09-25 14:37:42 +08:00
|
|
|
Certificate chain.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_CERTINFO(3)\fP
|
2016-02-24 08:03:03 +08:00
|
|
|
.IP CURLINFO_TLS_SSL_PTR
|
2015-09-25 14:37:42 +08:00
|
|
|
TLS session info that can be used for further processing.
|
2016-02-24 08:03:03 +08:00
|
|
|
See \fICURLINFO_TLS_SSL_PTR(3)\fP
|
2016-04-28 22:26:42 +08:00
|
|
|
.IP CURLINFO_TLS_SESSION
|
2021-11-26 15:46:59 +08:00
|
|
|
TLS session info that can be used for further processing. See
|
2016-04-28 22:26:42 +08:00
|
|
|
\fICURLINFO_TLS_SESSION(3)\fP. Deprecated option, use
|
|
|
|
\fICURLINFO_TLS_SSL_PTR(3)\fP instead!
|
2009-02-12 05:47:14 +08:00
|
|
|
.IP CURLINFO_CONDITION_UNMET
|
2020-04-04 23:27:18 +08:00
|
|
|
Whether or not a time conditional was met or 304 HTTP response.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_CONDITION_UNMET(3)\fP
|
2010-01-21 21:58:30 +08:00
|
|
|
.IP CURLINFO_RTSP_SESSION_ID
|
2015-09-25 14:37:42 +08:00
|
|
|
RTSP session ID.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_RTSP_SESSION_ID(3)\fP
|
2010-01-21 21:58:30 +08:00
|
|
|
.IP CURLINFO_RTSP_CLIENT_CSEQ
|
2015-09-25 14:37:42 +08:00
|
|
|
RTSP CSeq that will next be used.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_RTSP_CLIENT_CSEQ(3)\fP
|
2010-01-21 21:58:30 +08:00
|
|
|
.IP CURLINFO_RTSP_SERVER_CSEQ
|
2015-09-25 14:37:42 +08:00
|
|
|
RTSP CSeq that will next be expected.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_RTSP_SERVER_CSEQ(3)\fP
|
2010-01-21 21:58:30 +08:00
|
|
|
.IP CURLINFO_RTSP_CSEQ_RECV
|
2015-09-25 14:37:42 +08:00
|
|
|
RTSP CSeq last received.
|
2015-09-13 05:13:08 +08:00
|
|
|
See \fICURLINFO_RTSP_CSEQ_RECV(3)\fP
|
2016-11-23 17:44:18 +08:00
|
|
|
.IP CURLINFO_PROTOCOL
|
2022-10-12 22:43:31 +08:00
|
|
|
(Deprecated) The protocol used for the connection. (Added in 7.52.0)
|
2016-11-23 17:44:18 +08:00
|
|
|
See \fICURLINFO_PROTOCOL(3)\fP
|
|
|
|
.IP CURLINFO_SCHEME
|
|
|
|
The scheme used for the connection. (Added in 7.52.0)
|
|
|
|
See \fICURLINFO_SCHEME(3)\fP
|
2005-10-06 16:58:44 +08:00
|
|
|
.SH TIMES
|
2009-05-07 17:31:24 +08:00
|
|
|
.nf
|
2005-10-06 16:58:44 +08:00
|
|
|
An overview of the six time values available from curl_easy_getinfo()
|
|
|
|
|
2006-03-14 03:44:36 +08:00
|
|
|
curl_easy_perform()
|
2005-10-06 16:58:44 +08:00
|
|
|
|
|
2008-07-03 14:56:03 +08:00
|
|
|
|--NAMELOOKUP
|
|
|
|
|--|--CONNECT
|
|
|
|
|--|--|--APPCONNECT
|
|
|
|
|--|--|--|--PRETRANSFER
|
|
|
|
|--|--|--|--|--STARTTRANSFER
|
|
|
|
|--|--|--|--|--|--TOTAL
|
|
|
|
|--|--|--|--|--|--REDIRECT
|
2009-05-07 17:31:24 +08:00
|
|
|
.fi
|
2008-07-03 14:56:03 +08:00
|
|
|
.IP NAMELOOKUP
|
2019-04-11 22:06:40 +08:00
|
|
|
\fICURLINFO_NAMELOOKUP_TIME\fP and \fICURLINFO_NAMELOOKUP_TIME_T\fP.
|
2018-05-17 19:37:36 +08:00
|
|
|
The time it took from the start until the name resolving was completed.
|
2008-07-03 14:56:03 +08:00
|
|
|
.IP CONNECT
|
2018-05-17 19:37:36 +08:00
|
|
|
\fICURLINFO_CONNECT_TIME\fP and \fICURLINFO_CONNECT_TIME_T\fP.
|
|
|
|
The time it took from the start until the connect
|
2005-10-06 17:03:36 +08:00
|
|
|
to the remote host (or proxy) was completed.
|
2008-07-03 14:56:03 +08:00
|
|
|
.IP APPCONNECT
|
2018-05-17 19:37:36 +08:00
|
|
|
\fICURLINFO_APPCONNECT_TIME\fP and \fICURLINFO_APPCONNECT_TIME_T\fP.
|
|
|
|
The time it took from the start until the SSL
|
|
|
|
connect/handshake with the remote host was completed. (Added in 7.19.0)
|
|
|
|
The latter is the integer version (measuring microseconds). (Added in 7.60.0)
|
2008-07-03 14:56:03 +08:00
|
|
|
.IP PRETRANSFER
|
2018-05-17 19:37:36 +08:00
|
|
|
\fICURLINFO_PRETRANSFER_TIME\fP and \fICURLINFO_PRETRANSFER_TIME_T\fP.
|
|
|
|
The time it took from the start until the
|
2005-10-06 17:03:36 +08:00
|
|
|
file transfer is just about to begin. This includes all pre-transfer commands
|
|
|
|
and negotiations that are specific to the particular protocol(s) involved.
|
2008-07-03 14:56:03 +08:00
|
|
|
.IP STARTTRANSFER
|
2018-05-17 19:37:36 +08:00
|
|
|
\fICURLINFO_STARTTRANSFER_TIME\fP and \fICURLINFO_STARTTRANSFER_TIME_T\fP.
|
|
|
|
The time it took from the start until the
|
2011-05-04 04:47:56 +08:00
|
|
|
first byte is received by libcurl.
|
2008-07-03 14:56:03 +08:00
|
|
|
.IP TOTAL
|
2018-05-17 19:37:36 +08:00
|
|
|
\fICURLINFO_TOTAL_TIME\fP and \fICURLINFO_TOTAL_TIME_T\fP.
|
|
|
|
Total time of the previous request.
|
2008-07-03 14:56:03 +08:00
|
|
|
.IP REDIRECT
|
2018-05-17 19:37:36 +08:00
|
|
|
\fICURLINFO_REDIRECT_TIME\fP and \fICURLINFO_REDIRECT_TIME_T\fP.
|
|
|
|
The time it took for all redirection steps
|
2005-10-06 17:03:36 +08:00
|
|
|
include name lookup, connect, pretransfer and transfer before final
|
|
|
|
transaction was started. So, this is zero if no redirection took place.
|
2021-10-25 14:54:08 +08:00
|
|
|
.SH EXAMPLE
|
|
|
|
.nf
|
|
|
|
curl = curl_easy_init();
|
|
|
|
if(curl) {
|
|
|
|
curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
|
|
|
|
res = curl_easy_perform(curl);
|
|
|
|
|
|
|
|
if(CURLE_OK == res) {
|
|
|
|
char *ct;
|
|
|
|
/* ask for the content-type */
|
|
|
|
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct);
|
|
|
|
|
|
|
|
if((CURLE_OK == res) && ct)
|
2021-11-05 06:48:23 +08:00
|
|
|
printf("We received Content-Type: %s\\n", ct);
|
2021-10-25 14:54:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* always cleanup */
|
|
|
|
curl_easy_cleanup(curl);
|
|
|
|
}
|
|
|
|
.fi
|
|
|
|
.SH AVAILABILITY
|
2021-10-25 17:45:09 +08:00
|
|
|
Added in 7.4.1
|
2002-03-04 18:09:48 +08:00
|
|
|
.SH RETURN VALUE
|
|
|
|
If the operation was successful, CURLE_OK is returned. Otherwise an
|
|
|
|
appropriate error code will be returned.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR curl_easy_setopt "(3)"
|