diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-02-11 21:47:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-02-11 21:47:14 +0000 |
commit | 002cf105c6779ecf66acb36ba86aa415b8b98b09 (patch) | |
tree | defd4aa636c848dccfabb0290cd33ba9c3085696 /lib/getinfo.c | |
parent | fb8fdf92732dbd664c1a32305987cc1e0938e27d (diff) | |
download | curl-002cf105c6779ecf66acb36ba86aa415b8b98b09.tar.gz |
- CURLINFO_CONDITION_UNMET was added to allow an application to get to know if
the condition in the previous request was unmet. This is typically a time
condition set with CURLOPT_TIMECONDITION and was previously not possible to
reliably figure out. From bug report #2565128
(http://curl.haxx.se/bug/view.cgi?id=2565128)
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r-- | lib/getinfo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index c8841637e..bc387c960 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -228,6 +228,10 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) ptr.to_certinfo = &data->info.certs; *param_slistp = ptr.to_slist; break; + case CURLINFO_CONDITION_UNMET: + /* return if the condition prevented the document to get transfered */ + *param_longp = data->info.timecond; + break; default: return CURLE_BAD_FUNCTION_ARGUMENT; } |