What do all the characters in a URL mean?

721 viewsEngineeringOther

A URL will be something like YouTube.com/r7@usq=616UUhF

What is all the jargon at the end?

Thanks in advance

In: Engineering

7 Answers

Anonymous 0 Comments

I will give an example url and explain what all the parts mean:
`https://example.com/foo/bar?xyz=123`

The first section is `https://`. This specifies the protocol you are using to make the request. For links you open in a browser this will always been either http:// for unsecured webpages, or https:// for webpages that are secured. (Note: don’t enter sensitive information in a web form of the website uses http://. The data you enter can be read by anyone who intercepts the request).

The next section is `example.com`. This is the domain. This is the address of the server you want to talk to. This part tells the browser who it needs to send your request to. Everything between the two slashes for the protocol and the first slash is the domain.

The next section is ‘/foo/bar’. This is called the path. This tells the server where the webpage you want to visit is located. If there’s a typo in this part of the url, you will typically get a 404 error from the server, telling you that the web page you’re looking for doesn’t exist. The path is everything starting from the first slash up until the ? if it exists or up until the end of the url if there is no question mark.

The final section is ‘?xyz=123’. These are the request parameters. These are additional pieces of information that the server uses to process your request. In this example the user is sending a parameter named ‘xyz’ with a vlaue of ‘123’ along with the request. If you need to send more than one parameter, you separate those with an & character.

In your example the path has an at-sign and an equals sign in the path. That sequence of characters likely has some special meaning, but you’d have to talk to someone who works at YouTube to find out exactly what they all mean or how they process that request.

You are viewing 1 out of 7 answers, click here to view all answers.