remove cookies from transfer-info
authorMichael Wallner <mike@php.net>
Fri, 6 Feb 2015 11:21:03 +0000 (12:21 +0100)
committerMichael Wallner <mike@php.net>
Fri, 6 Feb 2015 11:21:03 +0000 (12:21 +0100)
it's only in netscape format and awfully slow anyway

gen_curlinfo.php
php_http_client_curl.c

index 0e8dfa1272da5553a3c6267e0c594dee6d991767..076a10d10f86bd34e1a354ea5a34b028bb9dc6ed 100755 (executable)
@@ -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(
index 26a29943f8942dc35b24d84271110e0217ec1074..3b4d5b187ca3e9efe328be60871eb0e00fefad07 100644 (file)
@@ -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);
        }