Re: [cookies?] unable to log in in http://board.flatassembler.net/

Thomas Dickey <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On Thu, Nov 04, 2021 at 07:22:06PM +0000, Sylvain BERTRAND wrote:
> Hi,
> 
> is the patch ok to go in?

It looks okay to me.
 
> regards,
> 
> -- 
> Sylvain
> 
> On Wed, Nov 03, 2021 at 07:28:21PM +0000, Sylvain BERTRAND wrote:
> > Ok, I did dive into the issue and found the bug which is on the server side:
> > the server does bug if you send mix-cased http header names, namely 'Content-type'
> > instead of 'Content-Type'.
> > Weird, I have a very strong feeling of deja vu.
> > 
> > Here is a patch to work-around those buggy servers with lynx:
> > ---
> > 
> > --- a/WWW/Library/Implementation/HTTP.c
> > +++ b/WWW/Library/Implementation/HTTP.c
> > @@ -1741,13 +1741,13 @@
> >  		anAnchor->post_content_type
> >  		? anAnchor->post_content_type
> >  		: "lose"));
> > -	HTBprintf(&command, "Content-type: %s%c%c",
> > +	HTBprintf(&command, "Content-Type: %s%c%c",
> >  		  anAnchor->post_content_type
> >  		  ? anAnchor->post_content_type
> >  		  : "lose",
> >  		  CR, LF);
> >  
> > -	HTBprintf(&command, "Content-length: %d%c%c",
> > +	HTBprintf(&command, "Content-Length: %d%c%c",
> >  		  !isBEmpty(anAnchor->post_data)
> >  		  ? BStrLen(anAnchor->post_data)
> >  		  : 0,
> 

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmGEO6gACgkQzCr0RyFn
vgP8kwv7BCEvG+wk2YzXHprcHY4jbyOxjHzOEqzl9CgmOK6jDaNTsAn3BNkr9y3M
WHQep3lWcrPswpJVqXg0y3KETPL/isduc14SFp4j1AB1K9iplxmc5SjUF+02FGRO
4rrVkxMAibK9dQGZnW4dGn9JMhNaU/4H1bXUYqUWiKdaJ9pK90HD8Qj0pccruLoi
gcIcnK62Uum8FcYhs/5UknOxHJ0VNvzDJuaiRB/eGiJqA4A5FfE3SPsj41i8FTDZ
Vzv3J2whddE4gNbehXu5HTsWdVegpnOjBzGchMbXFmmUfm92vh13SPSiiVVDqmEU
klIFFIrUhTnAAU3OB/8enTn2jYTJ1jPSDqOZwjE8E6MJdkocbcoStJoQDzOkRoWk
aU/O9ltBulHr4IXKrX1yiDFuSGRXRwoWFiZ2tBRJ8O79GFQOk1aKOhnl8fRGBDzk
DhgZvYQSqkh0Mx8724s6Refsua/TVqZK68ltO2Y2ADg91H53sDb03uJHZ6i6SynL
gl7CJJDa
=GyXe
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.