From b3b355caa3ed719c194dba884c3cc7d6b84f59c7 Mon Sep 17 00:00:00 2001 From: Cory Date: Fri, 26 Apr 2024 08:28:52 -0400 Subject: [PATCH] I completed the second checkpoint. I made three requests to get all three "desired" status messages. 1. One Internet-enabled device I use regularly is my iPhone. When I swipe left from the home screen, I can see the weather for the day. It's likely making a request for the weather using of whatever source they use. I'm not sure if they send my location with the request or if they get the weather for everywhere and then just display on my device the relevant weather for my location. I'd assume it's the former since that seems like it'd require less data to be transferred? 2. I've seen 404 messages when trying to go to URLs that don't exist, but I'd not really thought about what it meant or if I could get other numbers to show up! I just accepted its existence and didn't question if there was a reason for that particular number. I do wonder whether any or what information from my device gets sent with these requests. I know some things I get asked for permismsion to share, like my location with Hulu, but are there things that get shared without needing my permission? How does a server know where to send a response? I've been ignoring the whole TikTok ban stuff for the moment (I could probably benefit from a ban...) but I'm wondering if there's anything to be said about potential merits of lawmaker's case (even if I'm not sure I trust any American social media/governmental organizations that much more...). (I really hope I don't sound like a conspiracy theorist now...) --- notes.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/notes.md b/notes.md index aadcba7..df24d8d 100644 --- a/notes.md +++ b/notes.md @@ -26,3 +26,12 @@ This looks like the response provided a dictionary? 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 they return. + +http -v open https://riddles.makingwithcode.org/all +HTTP/1.1 405 Method Not Allowed + +http -v get https://riddles.makingwithcode.org/ +HTTP/1.1 404 Not Found + +http -v post https://riddles.makingwithcode.org/new +HTTP/1.1 400 Bad Request