471,348 Members | 1,543 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

socket in python with proxies

Hi, I have a proxy server that requires authentication on a non-standard
port and Im trying to connect to it via socket.connect()
I tried doing this:
import socket
server = ("username:pa******@proxyaddrs.com",1234)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

I keep getting the

Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
File "<string>", line 1, in connect
gaierror: (11001, 'getaddrinfo failed')

What does this mean? and can I actually use username/password to connect
using a socket in python?
Dec 21 '07 #1
0 971

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Chris Gray | last post: by
4 posts views Thread by Bryan Olson | last post: by
18 posts views Thread by David Rysdam | last post: by
11 posts views Thread by Mike M | last post: by
4 posts views Thread by Dekaritae | last post: by
reply views Thread by Jaap Spies | last post: by
9 posts views Thread by semedao | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.