[Python-Dev] urllib2.HTTPBasicAuthHandler doesn't work with GitHub API

2013-11-04 Thread Matěj Cepl
Hi, GitHub API v3 is intentionally broken (see http://developer.github.com/v3/auth/): The main difference is that the RFC requires unauthenticated requests to be answered with 401 Unauthorized responses. In many places, this would disclose the existence of user data. Instead, the GitHub API

Re: [Python-Dev] urllib2.HTTPBasicAuthHandler doesn't work with GitHub API

2013-11-04 Thread Senthil Kumaran
On Mon, Nov 4, 2013 at 6:11 AM, Matěj Cepl mc...@redhat.com wrote: I am not sure how widespread is this breaking of RFC, but it seems to me that quite a lot (e.g., http://stackoverflow.com/a/9698319/164233 which just en passant expects urllib2 authentication stuff to be useless), and the

Re: [Python-Dev] urllib2.HTTPBasicAuthHandler doesn't work with GitHub API

2013-11-04 Thread James Dennes
Hi there, Thanks for letting us know, however you'll need to report this bug at: http://bugs.python.org/ I'd recommend using one of the Python libraries listed here if that's possible in your case: http://developer.github.com/v3/libraries/#python I know that the following library is well