Why uri instead of url




















URI follows syntax rules to ensure uniformity. Moreover, it also maintains extensibility via a hierarchical naming scheme. It cannot be URL since it does not assist any person to find your home location. The reason is both identify you and gives a home location for you.

The problem with such a debate is that appropriate RFC are extremely dense and sometimes even contradictory.

Skip to content. URL contains components such as protocol, domain, path, hash, query string, etc. This is wrong. It is a "relative-ref", which is a kind of "URI-reference". See Section 4. CodeIgniter's probably using the terms wrong and that should be called out; the Q as currently edited isn't framed as CodeIgniter-specific.

For future people who read these comments and are as confused as I was: This answer wasn't posted for this question. This question never had anything to do with CodeIgniter. There was a duplicate question which specifically mentioned CodeIgniter which was closed and had all of its answers migrated over to this question.

This answer was one of those which were moved from the old closed question to this protected question. Even so, I this answer is misleading.

I have downvoted it - others should do the same since, in its new home, it is wrong. The author should delete it or the merge be undone. Show 5 more comments. Eugen Konkov A small addition to the answers already posted, here's a Venn's diagram to sum up the theory from Prateek Joshi's beautiful explanation : And an example also from Prateek's website :. Gustavo Mori Gustavo Mori 7, 3 3 gold badges 35 35 silver badges 51 51 bronze badges. I believe the second illustration is incorrect. By the specification url.

So, posts fragment identifier could be part of the URL — ruvim. The two illustrations contradict each other. Shouldn't url be - thinkzarahatke. Please explain it to me I am vey confused. Misleading, if not wrong. Premraj Premraj Minor quibble: There should be a colon between [domain] and [port]. IE: example. I have to wonder: how does one retrieve the resource associated with a mailto URL?

Your answer is incorrect and obscure. If you need 20 examples to exemplify a definition, your definition is not clear. There are two basic subsets: URLs, which define location especially to a browser trying to look up a webpage and URNs, which define the unique name of something.

If I'm way off base, please let me know! Brad Turek 1, 1 1 gold badge 25 25 silver badges 48 48 bronze badges. Kevin Lowe Kevin Lowe 5 5 silver badges 2 2 bronze badges. No, I think you're right. Craig Wilson Craig Wilson See this question which has many references to the specs: Are square brackets permitted in URLs? When square brackets appear in either, they should be encoded. Mark Cidade Mark Cidade I thought it was the other way around. It is only true that they are the same thing because the definition of URL has changed over time.

SFEley 7, 5 5 gold badges 26 26 silver badges 31 31 bronze badges. Maybe I missed that part, but I don't see any reference in the provided link to them removing the distinction between URL and URI, only acknowledging the confusion and wanting specs that are incorrectly referencing URL to be updated to reference URI instead. Adiii Adiii Amal Murali Peter Boughton Peter Boughton k 30 30 gold badges silver badges bronze badges.

Sujit Sujit 3, 9 9 gold badges 38 38 silver badges 50 50 bronze badges. Stephen Ostermiller Swapnil Swapnil 2 2 silver badges 5 5 bronze badges. Please refer for more details: Wikipedia. Peter Mortensen 29k 21 21 gold badges 97 97 silver badges bronze badges. Prashanth Sams Prashanth Sams This doesn't teach me anything that's not covered by the other answers that are at least 6 years old, and which are much more complete and actually try to explain how to distinguish URIs from URLs.

It is important to note that the image is a Venn diagram even though it doesn't look like a typical one. I've seen people try to interpret it as "parts of the URL". Gumbo Gumbo k gold badges silver badges bronze badges. Specifically, a URL is a type of URI that identifies a resource via a representation of its primary access mechanism e. It's not an extremely clear term, really. Here is my simplification: URN: unique resource name, i. This answer is wrong. Furthermore, the link in this answer is broken and I can not find a suitable replacement.

Bruno Bronosky Bruno Bronosky Mischa Mischa 7 7 silver badges 13 13 bronze badges. This answer is misleading. I found: A uniform resource identifier URI represents something of a big picture.

Rakeeb Rajbhandari Rakeeb Rajbhandari 4, 6 6 gold badges 41 41 silver badges 74 74 bronze badges. Do you recall the source for where you found this? Was it Wikipedia or somewhere else? It is okay if it is Wikipedia! I am not trying to be difficult about attribution but rather, I am asking because your answer is different than this one , and I think that your answer is correct.

The answer is ambiguous. In Java it is frequently used in this way: An Uniform Resource Locator URL is the term used to identify an Internet resource including the scheme http, https, ftp, news, etc. Freeman Freeman 5, 3 3 gold badges 42 42 silver badges 46 46 bronze badges. This is the difference between an absolute and a relative URL. It doesn't explain the relation of URI vs. Actually, these are accurate examples. On the Web, this is very often the difference. The Overflow Blog.

Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile. Linked See more linked questions. Related As there is more than one type of URI. This strict five-part structure is the basis for all URIs. It does not matter if the link is relative or absolute.

In this tutorial we will add Google search to a website using the custom site search tool. In this tutorial we are going to look at how to create a WordPress plugin. It's and you are creating the World Wide Web. You need a way to find a file on any computer connected to the internet.



0コメント

  • 1000 / 1000