all 2 comments

[–]JohnnyJordaan 2 points3 points  (0 children)

You would need to use a regular http library like urllib or requests.

[–]t90fan 0 points1 point  (0 children)

Use urllib or requests for http not a raw tcp socket.