From 1513e3ef5285f7a63cac3f1fb27eb8e60d475c5d Mon Sep 17 00:00:00 2001 From: Joye Zhou Date: Tue, 22 Oct 2024 21:28:26 -0400 Subject: [PATCH] Update main.py --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index cbdd5df..71bd995 100644 --- a/main.py +++ b/main.py @@ -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