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