01 - Fundamentals
01 - Fundamentals
Define Internet
Names These names begin with the name of the host machine,
followed by progressively larger enclosing collections of
machines called domains
The first domain name is the domain to which the host is a
part
The second domain name gives the domain of which the
first domain is a part
The last domain identifies the type of organization in which
the host resides
Fully qualified domain name example:
movies.marxbros.comedy.com
Domain Name System
Domain name conversion
Different telnet – protocol developed in 1969 to allow user on one
(1 of 2) resource.
HEAD - The HEAD method asks for a response identical to
that of a GET request, but without the response body.
GET - The GET method requests a representation of the
specified resource. Requests using GET should only retrieve
data.
POST - The POST method is used to submit an entity to the
specified resource, often causing a change in state or side
effects on the server.
PUT - The PUT method replaces all current representations
of the target resource with the request payload.
Request
HTTP defines methods (sometimes referred to as "verbs")
Methods indicating the desired action to be performed on the identified
(2 of 2) resource.
DELETE - The DELETE method deletes the specified
resource.
TRACE - The TRACE method performs a message loop-back
test along the path to the target resource.
OPTIONS - The OPTIONS method is used to describe the
communication options for the target resource.
CONNECT - The CONNECT method establishes a tunnel to
the server identified by the target resource.
PATCH - The PATCH method is used to apply partial
modifications to a resource.
Safe
Methods
HEAD, GET, OPTIONS and TRACE are
defined as safe (no side effects).
POST, PUT and DELETE are intended for
actions which may cause side effects on
the server.
Status The first line of the HTTP response is called the
Server response
HTTP is a stateless protocol.
HTTP Hosts do not need to retain information about users
Session between requests.
JSON
"firstName": "John",
"lastName": "Smith",
"address": {
"street": "212nd Street",
"city": "New York",
"state": "NY",
"postalCode": 10021
},
"phoneNumbers":[ "212
555-1234",
"646555-4567"
]
}
R|R
Questions
?