Skip to content

Commit

Permalink
Update http and https way to send get request
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCoderCarl committed Apr 23, 2024
1 parent bd88a92 commit 4daa7db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 4daa7db

Please sign in to comment.