Hello I'm trying to use protected http socks server with socket module as in the code shown below
>>> import socket
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> host = 'http://user:[email protected]'
>>> port = 8888
>>> s.bind((host, port))
It gives me error:
socket.gaierror: [Errno -2] Name or service not known
Though if I setup proxy on a Firefox it works fine. What is in the code?
Sultan