diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-04-16 07:59:20 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-04-16 07:59:20 +0000 |
commit | 62d205a2ec38ed54e359625d69a7210dc274f093 (patch) | |
tree | daafe4a6819326a2a00694a6352844770dfef2b4 /lib/getinfo.c | |
parent | 29e873b12d9723a7becb6fb2a06f7f346d3e3157 (diff) |
Dirk Manske brought the patch that introduces two new CURLINFO_* values:
CURLINFO_REDIRECT_TIME and CURLINFO_REDIRECT_COUNT.
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r-- | lib/getinfo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index 5be124fff..20a7db1e4 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -54,6 +54,7 @@ CURLcode Curl_initinfo(struct SessionHandle *data) pro->t_pretransfer = 0; pro->t_starttransfer = 0; pro->timespent = 0; + pro->t_redirect = 0; info->httpcode = 0; info->httpversion=0; @@ -148,6 +149,12 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) case CURLINFO_CONTENT_LENGTH_UPLOAD: *param_doublep = data->progress.size_ul; break; + case CURLINFO_REDIRECT_TIME: + *param_doublep = data->progress.t_redirect; + break; + case CURLINFO_REDIRECT_COUNT: + *param_longp = data->set.followlocation; + break; case CURLINFO_CONTENT_TYPE: *param_charp = data->info.contenttype; break; |