In a URI, the question mark signals the end of the path portion of the URL and the beginning of the query string parameters.
Normally unrecognized query string parameters are simply ignored, which is why nothing broke when you tested adding ?.jpg
.
As for why modifying the URL like this would change anything when connected to an open wifi hotspot that requires some kind of login or activation code my assumption would be:
- This isn't something that works in general but rather something that works for some particular hotspot solution.
- This solution where it does work would appear to have an http proxy or something similar that inspects requested URLs, query string and all, and allows anything that ends with
.jpg
even for clients that have not yet authenticated. (This check for the full URL, including query string, to end with .jpg
would appear to be either a bug or a misconfiguration!)
Worth noting is that doing what this tip suggests seems like it could very well be illegal and as such is not such a great idea to suggest to people.