Tag Archives: socket

[python]Simple tcp client

So here’s the simple code: So first create an object client, the attributes are IPV4 (socket.AF_INET) and tcp (socket.SOCK_STREAM). Use the send method to send http request, must send the msg in bytes, hence the b. Advertisements

Posted in Python, Scripting | Tagged , , | Leave a comment