diff --git a/notes.md b/notes.md index 3a338be..367d594 100644 --- a/notes.md +++ b/notes.md @@ -7,6 +7,28 @@ about the meaning of the line, and some situation in which it might be useful. You are welcome to research the meanings of these headers, but it's also fine to speculate for now. +"Content-Length: 116" is probably the size of the response; not sure what the unit +here would be...probably bytes since bits probably wouldn't fit all that text? This +could be useful if the request and response knew how much information was moving +in each direction maybe as a packet loss check? + +"X-Content-Type-Options: nosniff" looks interesting; this could be a limit on type +matching of some kind? Sniffing usually means looking for something so if an option +is set to not sniff, it's probably forced to some default value. As for what "type", +that I'm not sure. + +"Date: Tue, 05 Mar 2024 00:25:26 GMT" is the time when the response was generated. I +don't know what specific advantage this would provide, but coordination of systems +or measurements of data transfer speed would be my guesses. + +"Connection: keep-alive" sounds like it leaves the connection between the to points +open after the response is passed back. My guess is this speeds up future connections +because nothing else needs "establishing" from that point on. + +"Content-Type: application/json" looks like it's reporting the filetype of the response. +This could be useful in unpacking the response, since if I know what file type I'm +receiving, I can have it automatically parsed and formatted. + ## Checkpoint 2 The goal of this checkpoint is to see what status codes you can get back from the riddle server. Paste below several `http` requests and the status codes diff --git a/poetry.lock b/poetry.lock index 2fe2a57..2b0db06 100644 --- a/poetry.lock +++ b/poetry.lock @@ -159,7 +159,21 @@ h2 = ["h2 (>=4,<5)"] socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] zstd = ["zstandard (>=0.18.0)"] +[[package]] +name = "wheel" +version = "0.43.0" +description = "A built-package format for Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "wheel-0.43.0-py3-none-any.whl", hash = "sha256:55c570405f142630c6b9f72fe09d9b67cf1477fcf543ae5b8dcb1f5b7377da81"}, + {file = "wheel-0.43.0.tar.gz", hash = "sha256:465ef92c69fa5c5da2d1cf8ac40559a8c940886afcef87dcf14b9470862f1d85"}, +] + +[package.extras] +test = ["pytest (>=6.0.0)", "setuptools (>=65)"] + [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "2f1223dc33af6f607d099d2c766dc1d8ee77f935b3e05f7b742f85c68234a0e0" +content-hash = "a742034754f900b8d9ce31644f59e7a92d8e556f87da1b4531d9f8203ac09eeb" diff --git a/pyproject.toml b/pyproject.toml index 71a6673..77b6605 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,7 @@ readme = "README.md" [tool.poetry.dependencies] python = "^3.10" requests = "^2.31.0" +wheel = "^0.43.0" [build-system]