On Wed, Mar 09, 2005 at 08:29:46AM -0500, Kent Johnson wrote: > > Kent Johnson wrote: > >Paul Tremblay wrote: > > > >>So I just make a file called /etc/router_passwords and include > >>something like > >>WRT54G username password > >> > >>Then parse the file, and supply the info to the password handler? This > >>is easy to do, and I guess it is secure. > > The book "Foundations of Python Network Programming" has a sample program > that uses a custom urllib2.HTTPPasswordMgr to ask the user for the username > and password, maybe you would like to use that? > > The examples can be downloaded from the book Web site at > http://www.apress.com/book/bookDisplay.html?bID=363 > > Look for the one called dump_info_auth.py >
Thanks. There are lots of good examples in the free download examples. Paul -- ************************ *Paul Tremblay * [EMAIL PROTECTED] * ************************ _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor