Skip to Content
Navigation:

A stick figure smiling

If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!

Image of a comic. To read the full HTML alt text, click "read the transcript". browse more comics! get the zine!
read the transcript!

HTTP is the protocol (Hypertext Transfer Protocol) that’s used when you visit any website in your browser.

Firefox, to server: HTTP request - cat picture please

server, to Firefox: HTTP response - cat.gif

The exciting thing about HTTP is that even though it’s used for literally every website, HTTP requests and responses are easy to look at and understand:

server: here’s an HTTP response!

person: that response has the wrong Content-type header, that’s why the website isn’t working!

Example of what an HTTP request and response might look like:

request

request line:
GET / HTTP/I .1 .1

headers:

Host: examplecat.com
User-Agent: curl
Accept: */*

response

status:
HTTP/I .1 .1 200 0K

headers:

Cache-Control: max-age=604800
Content-Type: text/ html
Etag: "1541025663+ident"
Server: ECS (nyb/1D0B)
Vary: Accept-Encoding
X-Cache: HIT
Content-Length: 1270

body:

<!doctype html>
<title>Examp1e Cat</title>
...

that text is a lot to understand, so let’s get started learning what of it means!

Saturday Morning Comics!

Want another comic like this in your email every Saturday? Sign up here!

I'll send you one of my favourite comics from my archives every Saturday.
© Julia Evans 2024 | All rights reserved (see the FAQ for notes about licensing)