This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
Create request_http_client.py
Abdul Wahab Junaidfc60fd37f899
diff --git a/Python Tools/Http Client/request_http_client.py b/Python Tools/Http Client/request_http_client.pynew file mode 100644index 0000000..29bc47c--- /dev/null+++ b/Python Tools/Http Client/request_http_client.py@@ -0,0 +1,11 @@+import http.client++connection = http.client.HTTPConnection("www.google.com")+connection.request("GET", "/")+response = connection.getresponse()+print(type(response))+print(response.status, response.reason)++if response.status == 200:+ data = response.read()+ print(data)