I'm learning Web tech and teacher cannot give me a satisfactory explanation. I'd like to give a few example, please help me to point out am I right.
a/b/c.txt?t=win&s=chess
is request-URI
para5
does not belong to the request-URI is just a fragmentURL is used to describe the identity of an item. URI provides a technique for defining the identity of an item. URL links a web page, a component of a web page or a program on a web page with the help of accessing methods like protocols. URI is used to distinguish one resource from other regardless of the method used.
The request URI is the uniform resource identifier of the resource to which the request applies. While URIs can theoretically refer to either uniform resource locators (URLs) or uniform resource names (URNs), at the present time a URI is almost always an HTTP URL that follows the standard syntax rules of Web URLs.
Types of Uniform Resource Identifiers. Uniform Resource Locators (URLs) and Uniform Resource Names (URNs) are two types of URI.
URL is a useful but informal concept: a URL is a type of URI that identifies a resource via a representation of its primary access mechanism (e.g., its network "location"), rather than by some other attributes it may have. As such, a URL is simply a URI that happens to point to a resource over a network.
The URI standard is STD 66, which currently maps to RFC 3986.
Section 1.1.3 describes the difference between URIs and URLs (and URNs).
Section 3 describes the components a URI can have.
For the URI http://www.example.org:56789/a/b/c.txt?t=win&s=chess#para5
these would be:
Scheme: http
Authority: www.example.org:56789
User Information: not present
Host: www.example.org
Port: 56789
Path: /a/b/c.txt
Query: t=win&s=chess
Fragment: para5
The term "request-URI" is not defined or even used in STD 66 / RFC 3986.
The term "Request-URI" is defined by the HTTP standard (RFC 2616, §5.1.2), and refers to the URL as it is given in the actual HTTP request.
In normal HTTP requests, the URL scheme and host have already been handled by the time the request is sent (and the URL fragment does not exist at the HTTP protocol level at all), meaning the Request-URI is a path-absolute-URL string, possibly followed by ?
and a URL-query string.
That is to say, this part of the complete URL:
https://example.org/path/to/file?param=42#fragment
^^^^^^^^^^^^^^^^^^^^^^
Note that it includes the leading /
.
Exceptions to this include:
OPTIONS
HTTP method, the Request-URI may simply be *
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With