News for hackers. Stuff that matters.
Re:Althttpd: Simple webserver in a single C file by zaarn on Tuesday June 08, 2021 @08:44AM (#27434387)
The reason HTTP is ASCII based isn't because it's easier to debug. It's because back then the other end was as likely to be a human as a piece of software. Because HTTP in it's early days barely had headers or even formatting, so people typed "GET /" at the server directly or used the same method to send mail directly.

Nobody does that anymore and debugging is easily solved by converting your binary protocol to a textual form.

Re:Althttpd: Simple webserver in a single C file by throw0101a on Tuesday June 08, 2021 @09:11AM (#27434676)
I question the ascertain that humans were doing "GET /" or "HELO my.fq.dn" on any regular basis. There were mail clients from the very beginning for example:

* https://en.wikipedia.org/wiki/History_of_email

Perusing document-based information was also done via clients, first with Gopher and then with the WWW: either GUIs like Mosaic, or on the CLI via (e.g.) Lynx.

Re:Althttpd: Simple webserver in a single C file by michaelmior on Tuesday June 08, 2021 @09:26AM (#27434842)
I definitely did back in the day :) But I'm only one single human.
Re:Althttpd: Simple webserver in a single C file by lmilcin on Tuesday June 08, 2021 @09:51AM (#27435189)
I did both send mails over SMTP as well as downloading files from FTP using Telnet.
Re:Althttpd: Simple webserver in a single C file by jbverschoor on Tuesday June 08, 2021 @12:13PM (#27437107)
same
Re:Althttpd: Simple webserver in a single C file by zaarn on Tuesday June 08, 2021 @09:16AM (#27434733)
I would question if this weren't the case often enough that people would demand it be compatible with their teleprompter.
Re:Althttpd: Simple webserver in a single C file by choeger on Tuesday June 08, 2021 @10:31AM (#27435673)
I don't think this is about human readability (albeit it might be to some extent during the design phase). Instead, I think this was the sensible thing to do when byte order was way more variable across a network. If you only send single bytes to begin with, you can as well use a textual format, IMO.