X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_info.c;h=f686d470553dab9201802fb1ef7cbab5ef4f2a64;hp=33694e716c8b08617f2644a60a39ec7e53afbe6c;hb=b1ace11a9604ffcc496d32827aa66a2ba99db5ff;hpb=fbe633acd2cbb50c0f4e62bd4f487de5e579b5e2 diff --git a/http_request_info.c b/http_request_info.c index 33694e7..f686d47 100644 --- a/http_request_info.c +++ b/http_request_info.c @@ -143,6 +143,11 @@ PHP_HTTP_API void _http_request_info(http_request *request, HashTable *info) add_assoc_double_ex(&array, "appconnect_time", sizeof("appconnect_time"), d); } #endif +#if HTTP_CURL_VERSION(7,19,4) + if (CURLE_OK == curl_easy_getinfo(request->ch, CURLINFO_CONDITION_UNMET, &l)) { + add_assoc_long_ex(&array, "condition_unmet", sizeof("condition_unmet"), l); + } +#endif /* END */ #if HTTP_CURL_VERSION(7,19,1) && defined(HTTP_HAVE_OPENSSL) {