curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

max header size?

From: Felipe Gasper via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 8 Sep 2019 22:27:55 -0400

Hello,

        Is there an option in libcurl to limit the size of HTTP headers that are accepted?

        As best I can tell, CURLOPT_MAXFILESIZE only affects the size of the response payload, so if a misbehaving server were to send, e.g., an infinite stream of letters with no line breaks, is there any control--other than via the generic write callback--to cut off that stream at a sane limit?

        Thank you!

-Felipe Gasper
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-09-09