Весь написанный код

This commit is contained in:
2026-05-07 00:56:53 +03:00
parent 131cb3e8d1
commit 93e33b170b
12 changed files with 113 additions and 7 deletions
+13
View File
@@ -0,0 +1,13 @@
import socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(('vyatsu.ru', 80))
request = ("GET / HTTP/1.1\r\n" "Host: vyatsu.ru\r\n" "User-Agent: python-requests/2.33.1\r\n"
"Accept: */*\r\n"
"Connection: close\r\n"
"\r\n"
)
client.sendall(request.encode())
response = client.recv(4096)
print(response.decode())
client.close()