rx3:index
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rx3:index [2021/02/23 11:35] – [Client HTTP/GET (TCP)] orel | rx3:index [2024/03/18 15:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 166: | Line 166: | ||
<code python> | <code python> | ||
# | # | ||
- | import sys | ||
import socket | import socket | ||
- | |||
- | HOST = ' | ||
- | PORT = 80 | ||
s = socket.socket(socket.AF_INET, | s = socket.socket(socket.AF_INET, | ||
- | s.connect((HOST, PORT)) | + | s.connect((" |
s.sendall(b' | s.sendall(b' | ||
data = s.recv(1024) | data = s.recv(1024) |
rx3/index.1614080157.txt.gz · Last modified: 2024/03/18 15:05 (external edit)