Internet Lab
Answer and discuss the following questions with a partner:
What does HTTP stand for?
What is used to resolve a domain name to an IP address?
How do clients compare to hosts?
Compare different HTTP status codes.
How does TCP ensure a reliable connection?
What are the main five HTTP request types?
Draw your own diagram of a request/response cycle and label where the following would come into play: client, host/server, URL, client-side languages, server-side languages, data
T/F: HTTP headers can be changed by a user before executing a request.
T/F: Every HTTP request has a domain and a path.
T/F: Email uses the HTTP Protocol.
Use the ping
command to see how long it takes for servers to respond to your computer:
ping
command to see how long it takes for servers to respond to your computer:All requests sent from your computer must travel across the internet, going through various servers, in order to make the delivery. Using the ping
command in the terminal window, try to find servers that respond quickly, and find some that take longer to respond. Hit CTRL + C
if you need to exit ping
. What are the fastest and slowest sites you can ping?
University servers are usually hosted on their actual campuses. Use university servers to estimate how long it takes requests to travel around the world. Look up the distance between cities and calculate miles / time in milliseconds to calculate how fast these requests travel.
Sample Output
Ping this specific IP address and see how long it takes the server to respond. Google this IP to find out what makes it unique. Be sure to use the Google homepage. IP addresses are hard to quick-search from your browser's location bar!
Experiment with the traceroute command to see how internet traffic flows between your computer and servers:
Sample Output
Experiment with cURL and send requests to various web pages. Here are some useful flags you can use:
Headers flag
Sample Output
Verbose mode
Sample Output
Using cURL and the -I
flag, get the following response codes from some webpages:
-I
flag, get the following response codes from some webpages:2xx - examples include 200 (OK), 201 (Created)
3xx - examples include 301 (Moved permanently)
4xx - examples include 400 (Bad request), 404 (Not found)
Last updated