X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=c3e612835cdf5789a7927e6f025c9be0479f3edd;hp=fd1a176f9f7805488a694d271f2f466956ef6394;hb=a19f558421040b5396b3d76e6c4878d7eda85aba;hpb=e577961fed4b5ae6a868adbeb420e0fec7aa8c6e diff --git a/http_request_api.c b/http_request_api.c index fd1a176..c3e6128 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -523,6 +523,13 @@ PHP_HTTP_API STATUS _http_request_prepare(http_request *request, HashTable *opti } } +#if LIBCURL_VERSIONNUM >= 0x070f01 + /* reset cookies */ + if ((zoption = http_request_option(request, options, "resetcookies", IS_BOOL)) && Z_LVAL_P(zoption)) { + HTTP_CURL_OPT(COOKIELIST, "ALL"); + } +#endif + /* session cookies */ if ((zoption = http_request_option(request, options, "cookiesession", IS_BOOL))) { if (Z_LVAL_P(zoption)) {