In: Computer Science
why are which letters, such as A, B, C, ..., or signs, such as #, *, •, ..., are not allowed to be sent on a URL to a Web server.
-> If we use capital alphabet like A, B, C in a URL, it
causes issue if the website is hosted on Linux.
Suppose our URL is "www.test.com/About". If your website is on
windows web server, it does not give cause any issue, because
windows server is case insensitive. So even if you write
"www.test.com/about" instead of "www.test.com/About", it does not
cause any issue in windows server. But if the website is hosted on
Linux, it considers "www.test.com/about" and "www.test.com/About"
as two different URLs and will return you dead 404 page not found,
if we call using "www.test.com/about". So it is better not to use
capital alphabet like A, B, C etc to be sent on a URL to a web
server.
-> #,*,. ...etc are considered as reserved characters in a
URL. These reserved characters are used as delimiters in a URL. The
main purpose of these characters is to act as delimiters that are
distinguishable from other data in an URL. So these characters
cannot be used directly on a URL to a web server. These characters
must be percent-encoded if they are to be used in a URL.
eg: '%23' for '#', '%2A' for '*' etc.