From 4daa7dbaa4d09f1c1f2ac37790784891dbf2ad4e Mon Sep 17 00:00:00 2001 From: CoolCoderCarl <123qwekir2wl@gmail.com> Date: Tue, 23 Apr 2024 18:58:25 +0300 Subject: [PATCH] Update http and https way to send get request --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 0ace4a5..cfdcffb 100644 --- a/src/main.py +++ b/src/main.py @@ -80,13 +80,13 @@ def http_requests(hosts: list): for h in hosts: try: print(h) - response = requests.get(f"https://{h}") + response = requests.get(f"http://{h}") # response = requests.get(f"https://{h}", verify=False) print(response) except requests.exceptions.SSLError as ssl_err: logging.error(f"SSL Error - {ssl_err}") print(h) - response = requests.get(f"http://{h}") + response = requests.get(f"https://{h}") print(response) except requests.exceptions.BaseHTTPError as base_http_err: logging.error(f"BASE HTTP Error - {base_http_err}")