[Tutor] urllib2_realm??

govind goyal govindgoyal at gmail.com
Wed Apr 11 13:00:17 CEST 2007


Hi,

Use of Basic HTTP Authentication:

import urllib2
auth_handler.add_password(*'realm'*, 'host', 'username', 'password')

What is realm and its use in above line of code?

If I want to access a web page and I don't know what the realm is,then
what should I write in place of realm?

Can anybody help?

Best Regards,

Govind Goyal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070411/e50e3422/attachment.htm 


More information about the Tutor mailing list