URLs can obviously contain 0 question marks, e.g. www.google.com
Or they could contain exactly 1 question mark e.g. www.google.com?q=soccer
So far, I can see that most (all?) URL's still work when more '?' characters are added, and I also know that query strings are non-standard and implementation is client-specific, so, if I interpret that correctly, technically there's nothing stopping a developer from having URL's containing many ?'s, but it just might not fit within standard conventions.
Example: something like this still works, even though it's an odd URL: https://www.google.com/?????????
Question
So my question is can a valid url contain more than one question mark, and are the superfluous question marks ever useful? (obviously 1 question mark serves a very important purpose in many URL's - to delineate between the domain and the parameters)
Backgorund
Why would anyone care? I'm making a method that accepts a URL, and I'll provide a warning if there's > 1 question mark. (but I won't provide that warning if there are valid reasons for > 1 question mark in typical day to day use)
Aucun commentaire:
Enregistrer un commentaire