4 ms·
Well, I sure hope the remainder of my URLs are safe.
by amelius 2y ago
Well, I sure hope the remainder of my URLs are safe.
- amelius 2y agoLike, in: example.com/secret-id-48723487345 I hope the last bit is not leaked somehow (?) Btw, we need a "falsehoods programmers believe about URLs" ... Although there is: https://www.netmeister.org/blog/urls.html https://www.netmeister.org/blog/urls.html
- idoubtit 2y ago> Although there is: https://www.netmeister.org/blog/urls.html https://www.netmeister.org/blog/urls.html I think the section named "Pathname" is wrong. It describes the path of an URL as if every server was Apache serving static files with its default configuration. It should describe how the path is converted into a HTTP request. For instance, the article states that "all of these go to the same place : https://example.org https://example.org https://example.org/ https://example.org/ https://example.org// https://example.org// https://example.org////////////////// https://example.org//////////////////". That's wrong. A web client send a distinct HTTP request for each case, e.g starting with `GET // HTTP/1.1`. So the server will receive distinct paths. The assertion of "going to the same place" makes no sense in the general case.