scheme ":" scheme-specific-part
scheme
identifies a naming scheme, e.g., http
scheme-specific-part
identifies resource in some
way specific to the schemescheme
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 usedhost
is a fully qualified
domain name or IP addressport
is optional
(usually a default)url-path
is the path to
the resource, specific to schemequery-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 schemewww.bbc.co.uk
is the hostsearch
is the url-pathq=brexit
is the query stringhttp
user
name and password
usually not applicableport
number is 80https
port
number is 443ftp
user
name and password
can be givenport
number is 21telnet
port
number is 23mailto
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 toosymbol | escaped version |
---|---|
% | %25 |
/ | %2F |
# | %23 |
? | %3F |
space | %20 |
& | %26 |
www.w3.org
than 128.30.52.37
uk
, fr
, de
, ch
edu
: educational institutionscom
: commercial entities, i.e., companiesnet
: network providersorg
: organisations, e.g. NGOsgov
: government agenciesmil
: US militaryint
: 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
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 SMTPMIME-Version
Content-Type
: specifies a type and subtypeContent-Transfer-Encoding
: specifies auxiliary
encoding for transferContent-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].