Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
# Client program in Python
import socket
host=socket.gethostbyname("tp.lisp-views.org")
port=8888
# Conection to server
s = socket.socket()
s.connect((host, port))
s.send("[email protected]")
with open("myfile"+"index.html",'wb') as f:
while True :
data = s.recv(1024)
print(data)
if not data:
break;
f.write(data);
f.close();
s.close();
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more