Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def make_http_request(ip, port):
# (This variable is defined at the top of this file if you want to play with it)
#
# Hint: This is meant for you to use Google to figure out.

ip_address = socket.gethostbyname(hostname)
response = make_http_request(ip_address, 80)
print(response)
# Next, call make_http_request with the correct parameters and then print the response
# This response should look a lot like the in-class example of "curl", and start with
# "HTTP/1.1 200 OK". Rememeber, we're making an HTTP request, so from that you should
Expand Down