patch: http auth support

Robey Pointer robey at lag.net
Mon Nov 21 23:30:26 GMT 2005


Python's urllib2 already has HTTP auth support, but it's not hooked  
up by default.  Attached is a patch that pre-chews HTTP urls to pull  
out auth info, and jumps through the right hoops to make urllib2 use  
that for authentication.  It works against my apache server using  
"plain" auth, but the module docs imply that digest auth may work too.

Unit tests are included.  The auth hookup is done in such a way that  
it should be easy to hook up the "auth file" concept discussed here a  
few days ago.

robey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1404.patch
Type: application/octet-stream
Size: 3176 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051121/110349da/attachment.obj 


More information about the bazaar mailing list