scheme ":" scheme-specific-part
scheme
identifies a naming scheme, e.g., http
scheme-specific-part
identifies resource in some
way specific to the scheme
scheme
examples include
ftp
, http
, https
,
mailto
,
telnet
[ ... ]
denotes optionalscheme specific part
has syntax"//" [ user
[ ":" password ] "@" ]
host
[ ":" port ] [ "/"
url-path ]
[ "?" query-string ]
[ "#" anchor ]
user
and
password
are not often used
host
is a fully qualified
domain name or IP address
port
is optional
(usually a default)
url-path
is the path to
the resource, specific to scheme
query-string
includes
parameters associated with the request (usually form fields)
anchor
is a reference to
a part of a resource (a fragment identifier)
In https://www.bbc.co.uk/search?q=brexit
https
is the scheme
www.bbc.co.uk
is the host
search
is the url-path
q=brexit
is the query string
http
user
name and password
usually not applicable
port
number is 80
https
port
number is 443
ftp
user
name and password
can be given
port
number is 21
telnet
port
number is 23
mailto
url-path
to be specified
/
, #
, ?
, e.g., have special meaning in URIs
&
is used to separate parameters in a query string
%
followed by the ASCII
hexadecimal value of the character
%
has a special meaning too
symbol | escaped version |
---|---|
% | %25 |
/ | %2F |
# | %23 |
? | %3F |
space | %20 |
& | %26 |
www.w3.org
than 128.30.52.37
uk
, fr
, de
, ch
edu
: educational institutions
com
: commercial entities, i.e., companies
net
: network providers
org
: organisations, e.g. NGOs
gov
: government agencies
mil
: US military
int
: organisations established by international treaties
nslookup
on Windows/Unix-based systems
nslookup www.dcs.bbk.ac.uk ... Non-authoritative answer: Name: www.dcs.bbk.ac.uk Address: 193.61.29.21
mailto:
prefix in URI in browser
name@dept.inst.ac.uk
John_Q_Smith
on computer
example.edu
to two users on computer somewhere.com
keyword: informationwhere keywords include
From
,
To
,
Subject
,
Cc
DATA
as sent by SMTP
MIME-Version
Content-Type
: specifies a type and subtype
Content-Transfer-Encoding
: specifies auxiliary
encoding for transfer
Content-Type
header is the MIME typetext/html
,
image/gif
and multipart/mixed
Content-Transfer-Encoding
is
base64
:
0x00 | 0x10 | 0x20 | 0x30 | |
---|---|---|---|---|
0 | A | Q | g | w |
1 | B | R | h | x |
2 | C | S | i | y |
3 | D | T | j | z |
4 | E | U | k | 0 |
5 | F | V | l | 1 |
6 | G | W | m | 2 |
7 | H | X | n | 3 |
8 | I | Y | o | 4 |
9 | J | Z | p | 5 |
A | K | a | q | 6 |
B | L | b | r | 7 |
C | M | c | s | 8 |
D | N | d | t | 9 |
E | O | e | u | + |
F | P | f | v | / |
0x00
to 0x3F
(111111
), i.e., 0
to 63
01011010, 10001010, 00011101
as follows
010110, 101000, 101000, 011101
0x16, 0x28, 0x28, 0x1D
W, o, o, d
Chapter 4 of [Comer] and Chapter 2 of [Kurose and Ross].