From 9ec099a2bc6219e691e3c921f9d00632bd2493df Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 12 Jun 2023 09:01:30 +0200 Subject: [PATCH] tool_operate: allow cookie lines up to 8200 bytes Since this option might set multiple cookies in the same line, it does not make total sense to cap this at 4096 bytes, which is the limit for a single cookie name or value. Closes #11303 --- src/tool_operate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool_operate.c b/src/tool_operate.c index a72e8b6d27..9cff7b3364 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1823,7 +1823,7 @@ static CURLcode single_transfer(struct GlobalConfig *global, struct curl_slist *cl; /* The maximum size needs to match MAX_NAME in cookie.h */ -#define MAX_COOKIE_LINE 4096 +#define MAX_COOKIE_LINE 8200 curlx_dyn_init(&cookies, MAX_COOKIE_LINE); for(cl = config->cookies; cl; cl = cl->next) { if(cl == config->cookies) -- 2.47.3