On Wed, 17 May 2023, Benjamin Herrenschmidt via curl-library wrote:

And more specifically by the 8KB limit applied to the cookier headers.

Back again, having done some more thinking.

The main problem with upping this limit is that a typical user don't know what the maximum allowed line length in the other end is. The limit was introduced because it was noticed that (some) servers will treat a too long line as a serious error and repond with a 400.

If curl receives a set of cookies that combined needs TOO_LONG bytes to get sent over the wire, and it gets a 400 back, then curl is pretty much stuck and can't do anything against that server without some actions or when enough
number of cookies expire...!

So: not an easy limit to toy around with.

--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to