curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl truncating long cookies?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 18 Sep 2017 01:01:19 +0200 (CEST)

On Fri, 8 Sep 2017, Kevin Smith via curl-library wrote:

> Hey, I am looking at an issue with libcurl where it seems that very long
> cookies are getting truncated.

I just filed pull request 1894 that is an attempt to address this issue:

   https://github.com/curl/curl/pull/1894

It actually makes sure that the name is not longer than supported, and the
max length right now is 1023 bytes.

- The cookie spec RFC 6265 doesn't actually limit the cookie name length, only
the total cookie size, so I think it would be suitable to make a quick check
for how long cookie names for example a few popular browsers support.

- I added test case 1151 to verify the functionality.

Feedback is welcome!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-09-18