What’s a URL?
Uniform Resource Locator is what URL stands for. It is a website address. The words (javatpoint.com) or an Internet Protocol (IP) address (22.214.171.124) can be part of a URL. But most people use URLs with words instead of numbers because it’s easier to remember.
How to write a URL:
- The scheme is used to tell what kind of Internet service it is (most common is http or https).
- the prefix is a domain’s name is given by its prefix (default for http is www).
- The domain is used to describe the name of an Internet site (like javaTpoint.com).
- Port tells the host what port number to use (default for http is 80).
- The path is used to tell the server what a path is (If omitted: the root directory of the site).
- The name of a document or resource is set by its filename.
Here is a list of some of the most common URL schemes:
- http: Common web pages that use the HyperText Transfer Protocol. Not a secret.
- https (Secure HyperText Transfer Protocol):Secure web pages. Encrypted.
- File Transfer Protocol, or ftp, is a way to download or upload files.
- file: A file on your computer.
URL encoding is used to turn non-ASCII characters into a format that can be used over the Internet, since a URL is only sent over the Internet using the ASCII character set. If a URL contains characters outside the ASCII set, the URL has to be converted.
- In URL encoding, the non-ASCII characters are replaced with a “%” followed by hexadecimal digits.
- URLs cannot contain spaces. URL encoding normally replaces a space with a plus (+) sign, or %20.
Following is a list of some character sets which are encoded by browser after submitting the text.
|Character||From Windows-1252||From UTF-8|