Re: httplib exception in Django model

2012-09-19 Thread airween
Hello, On Wednesday, September 19, 2012 7:45:00 PM UTC+2, Alexis Roda wrote: > > Al 19/09/12 10:42, En/na airween ha escrit: > > >File "/usr/lib/python2.6/socket.py", line 547, in create_connection > > for res in getaddrinfo(host, port, 0, SOCK_STREAM): > > error: Int or String expect

Re: httplib exception in Django model

2012-09-19 Thread Alexis Roda
Al 19/09/12 10:42, En/na airween ha escrit: File "/usr/lib/python2.6/socket.py", line 547, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): error: Int or String expected >>> What should I do, what is the problem? According to the last line it seems that 'host

httplib exception in Django model

2012-09-19 Thread airween
Hello, here is the sample code: #!/usr/bin/python > # -*- charset: utf-8 -*- > > import sys > import httplib > import base64 > > > httphost, httpport = "www.foo.com", 80 > httpuri = "/addrs.php" > > conn = httplib.HTTPConnection(httphost, httpport) > > conn.request("GET", str(httpuri)) > > >