für den folgenden CodePython: Urllib.urlopen nicht numerisch Port
theurl = "https://%s:%[email protected]/nic/update?hostname=%s&myip=%s&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG" % (username, password, hostname, theip)
conn = urlopen(theurl) # send the request to the url
print(conn.read()) # read the response
conn.close() # close the connection
bekomme ich folgende Fehler
File "c:\Python31\lib\http\client.py", line 667, in _set_hostport
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
Irgendwelche Ideen ???
Warum drucken? Er hat es in der Frage gepostet. Das Problem ist das ':' in der URL, die muckabout erwähnt hat. –