HTTP:The Postal Service of the Internet Flashcards
Define protocol
standard for communication between machines
What 3 protocols are used in most web communication
HTTP, TCP/IP, DNS
Define HTTP
(Hypertext Transfer Protocol) High-level web communication. Transfers files such as HTML, CSS, JavaScript, images, and form submissions. Designates how requests and responses should be structured.
Define TCP/IP
Transmission Control Protocol (TCP) and the Internet Protocol (IP) Low-level web communication for transferring small bits of raw data aka packets
What is DNS?
Domain Name Service: Address book for the internet. Translates human friendly names into server addresses
How does HTTPS differ from HTTP?
HTTP protocol with a secure connection. Can’t be read in-transit due to encryption.
Describe the use of packets for transmitting files
Files are broken down into small, standardized chunks of information that are sent and reassembled after reaching their destination
What purpose do domain names serve?
ex: www.launchcode.org
This name is an alias for server IP address
Define IP address
numerical label assigned to each device connected to a computer network
What does it mean to resolve an address?
When a message is addressed to domain name, a lookup is performed on a name server. The message is sent to corresponding IP
Define nameserver
Directory of domains and IP addresses
What is a loopback address?
Alias localhost. Special IP address 127.0.0.1 used by computer to refer to itself
Define URL
Uniform resource locator aka web addresses.
Write a common URL structure
scheme://host:port/path?query_string
Describe scheme
Most often specifies protocol used in making request. Common ones include: http, https, ftp, mailto, file
What function does Host serve in a URL?
portion of URL specifying when request should be sent. Can be IP or domain
Are Port Numbers required in a URL? What function do they serve?
Optional in URL. Port determines specific application on server that should handle request. Conventionally given type of app always uses same port (ex: MySQL uses port 3306). If none specified, default value used based on scheme (http:// is 80, https:// is 443)
Define Path
Tells server what is being requested. If no path specified, root path / is used
What function does a Query String serve?
Provides additional data needed to fulfill request
Top level domain (TLD)
.com, .org, .net - categories of internet, help sort websites and route requests through certain group of servers
What symbol is used for a Fragment, and what role does it play in a URL
Can mark specific spots on a web page, among other things
What role does % Encoding serve in a URL
Help encode special characters in URL
Describe the role of routers in transmitting data
Direct packets of information around the internet. Each time packet encounters a router it’s IP address is added to server request. Server sends back along same path.
What kind of data do requests contain?
- URL requested
- method
- metadata - browser, type of data
- optional request msg