Lesson 2: Say Hello to RFC 7230
- The spec
- Reading assignment
- ASCII and UTF-8
- Content length
- The strict, the lazy, and the builder
- Back to the sockets
- 14 minutes
We know we’re going to be reading some bytes from this socket and writing some bytes to this socket, but how do we format those so that the client and server can understand each other? We need some common language that they both speak in order for these bytes to have any meaning.
In the context of networking, we call such a language a protocol, and the one we’ll be talking about here is HTTP, which stands for Hypertext Transfer Protocol.