From: Daniel Stenberg Date: Mon, 12 Jun 2023 07:01:30 +0000 (+0200) Subject: tool_operate: allow cookie lines up to 8200 bytes X-Git-Tag: curl-8_2_0~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ec099a2bc6219e691e3c921f9d00632bd2493df;p=thirdparty%2Fcurl.git 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 --- 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)