Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bug in ftp(1)?



On Sun, Feb 18, 2024 at 12:19:57PM -0000, Michael van Elst wrote:
> wiz%NetBSD.org@localhost (Thomas Klausner) writes:
> 
> >ftp: Receiving HTTP reply: Input line is too long
> 
> #define       FTPBUFLEN       (4 * MAXPATHLEN)
> char buf[FTPBUFLEN];
> 
> That's 4kB.
> 
> >curl -v https://sourceforge.net/projects/courier/files/courier-unicode/2.3.=
> >0/courier-unicode-2.3.0.tar.bz2
> 
> This returns a 5kB HTTP header "content-security-policy".
> 
> There is no protocol limit, but common server implementations do limit header
> lines to something between 4k (some nginx versions) to 48k (tomcat).

Thanks for the analysis. I've increased the size to 16kB.
 Thomas


Home | Main Index | Thread Index | Old Index