URLs
● Uniform Resource Locator
○ uniquely identifies a given resource on the web
● Syntax:
scheme://authority/path?param=val#anchor
Examples:
http://www.ietf.org/rfc/rfc959.txt
http://xyz.org:8081/route/subroute
http://www.ietf.org/rfc/rfc959.txt
ftp://tug.ctan.org/pub
rtsp://192.168.0.164/axis-media/media.amp
Scheme:
Specifies protocol a client
must use to interact with
the resource.
E.g., http or ftp
Authority:
Indicates location of a given resources in terms of
a service, e.g., offered by a server accepting TCP
connections. Hostname and port (sometimes
omitted).
E.g., princeton.edu:80 or google.com
Parameters:
Encode additional information
sent to the server. Behavior
depends on the server.
E.g., ?mobile=true&lang=es
Anchor:
Encode additional information
for the client (not sent to
server).
E.g., #section-assignments
Path:
Indicates location of a resource
within the scope of the service.
E.g., /precepts or
/courses/archive/fall19/cos316