urllib question
rdack
rdacker at pacbell.net
Mon Jun 10 22:35:07 EDT 2002
this works but i don't understand it. it retrieves data from my
router.
params = urllib.urlencode({'RC': '@D', 'ACCT' : "root", 'PSWD' :
"71:29:26", 'URL': 'admin' })
ipurl = "http://" + iphost + "/cgi-bin/logi"
urlfp = urllib.urlopen(ipurl, params)
i was wondering exactly what those params mean.
i have some other code that wants a user name and password and i don't
know what to give it. is the username = 'root'?
and what is the password? a string with 3 two digit numbers separated
by colons?
what is the 'URL' param mean?
somewhere to find documentation?
More information about the Python-list
mailing list