Hi,

Would it be possible for curl to return all headers (in verbose mode) if the 
max-filesize limit is hit? 

It seems (but I don't know) curl parses the server headers, if it finds 
Content-Length it will compare it with the --max-filesize option and if this is 
larger it stops parsing and exits with curl: (63) Maximum file size exceeded. 
Would it be possible to keep parsing the headers and fail after the last header 
instead?

Usage:
This way it is easier on the client side why a request fails by showing the 
actual size of the request, without making a new request...

Maybe the same goes for other options that i'm not aware of where the full 
headers can be useful.

--
Brendan
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html

Reply via email to