From: Michael Wallner Date: Fri, 6 Feb 2015 11:21:03 +0000 (+0100) Subject: remove cookies from transfer-info X-Git-Tag: RELEASE_2_3_0_RC1~50 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=2e8a57c215cf1e5955a141636c1a7c154a7798ab;p=m6w6%2Fext-http remove cookies from transfer-info it's only in netscape format and awfully slow anyway --- diff --git a/gen_curlinfo.php b/gen_curlinfo.php index 0e8dfa1..076a10d 100755 --- a/gen_curlinfo.php +++ b/gen_curlinfo.php @@ -41,7 +41,8 @@ $ifdefs = array( ); $exclude = array( 'PRIVATE', 'LASTSOCKET', 'FTP_ENTRY_PATH', 'CERTINFO', 'TLS_SESSION', - 'RTSP_SESSION_ID', 'RTSP_CLIENT_CSEQ', 'RTSP_SERVER_CSEQ', 'RTSP_CSEQ_RECV' + 'RTSP_SESSION_ID', 'RTSP_CLIENT_CSEQ', 'RTSP_SERVER_CSEQ', 'RTSP_CSEQ_RECV', + 'COOKIELIST' ); $translate = array( diff --git a/php_http_client_curl.c b/php_http_client_curl.c index 26a2994..3b4d5b1 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -410,17 +410,6 @@ static STATUS php_http_curle_get_info(CURL *ch, HashTable *info) add_assoc_zval_ex(&array, "ssl_engines", sizeof("ssl_engines"), subarray); curl_slist_free_all(s); } - if (CURLE_OK == curl_easy_getinfo(ch, CURLINFO_COOKIELIST, &s)) { - MAKE_STD_ZVAL(subarray); - array_init(subarray); - for (p = s; p; p = p->next) { - if (p->data) { - add_next_index_string(subarray, p->data, 1); - } - } - add_assoc_zval_ex(&array, "cookies", sizeof("cookies"), subarray); - curl_slist_free_all(s); - } if (CURLE_OK == curl_easy_getinfo(ch, CURLINFO_REDIRECT_URL, &c)) { add_assoc_string_ex(&array, "redirect_url", sizeof("redirect_url"), c ? c : "", 1); }