Part One
What is HTTP?
- Hyper Text Transfer Protocol. Defines how to get data to and from a server.
What is a URL?
- Uniform Rsource Locator. Is the address associated with the place you want to go.
What is DNS?
- Domain Name System. This converts human readable names into IP addresses.
What is a query string?
- A query string passes key value pairs into the url to send to the server.
List 2 HTTP Verbs:
Get
- gets data from a server.
Post
- sends data to a server and can change data on a server.
What is a HTTP request?
- A HTTP request is a request from the client to the server and follows the HTTP.
What is a HTTP respone?
- A HTTP response is the response the server sends to the client and follows the HTTP.
What is a HTTP header:
- A header provides additional information about the request made or response given.
- A request header would be
Host
, User-Agent
, Content-Type
.
- A response header would be
Last-Modified
, Content-Type
, Content-Encoding
.
What happens when you visit a website?
- Request is sent.
- DNS retrieves IP address and forwards to the server.
- Header info is sent to the server.
- Server responds and sends information back to the client.
- Client browser interprets HTML, CSS, and Javascript and creates the webpage.
Part Two
- Check out the pirate jokes:
curl
https://icanhazdadjoke.com/search?term=pirate
dig
icanhazdadjoke.com
- Simple web page served in
python3 -m http.server
. <h1> Hello World </h1>