Show HN: httpclock. A useless way to tell the time with HTTP status codes… https://ift.tt/wcYX72j

Show HN: httpclock. A useless way to tell the time with HTTP status codes… I made this a few months back as a fun little project and it has absolutely no utility whatsoever. The server returns the current time in the request's status code — i.e., as long as the time can be mapped to a valid HTTP status code (e.g., 4:04pm -> 404 Not found) the server returns that status code for the request. Example: https://ift.tt/OWc9pBg The httpclock.com domain detects timezone by IP and redirects to the respective subdomain such as pt.httpclock.com (but will fall back to UTC) A browser will show a blank page for most of the day given the number of valid status codes, but you can check other timezone subdomains, e.g. `curl -I https://ift.tt/UisASw5 ` Note: "Invalid" times will return 999 with no content. Anyway, I hope you enjoy this very useless clock. I plan to post the code on GitHub soon since I may as well. Thanks! https://httpclock.com November 10, 2024 at 10:05PM

Komentar

Postingan populer dari blog ini

Show HN: Interactive exercises for GNU grep, sed and awk https://ift.tt/OxeFwah

Show HN: Create demos & guides just with a simple prompt https://ift.tt/HfWo3mz