निम्नलिखित कोडपायथन: Urllib.urlopen असांख्यिक बंदरगाह
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
मैं निम्न त्रुटि
File "c:\Python31\lib\http\client.py", line 667, in _set_hostport
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
किसी भी विचार पाने के लिए ???
इसे प्रिंट क्यों करें? उन्होंने इसे प्रश्न में पोस्ट किया है। मुद्दा यूआरएल में ': 'है जो मकबॉउट ने उल्लेख किया है। –