Re: httplib with NETRC authentication

2014-05-14 Thread Chris Angelico
On Thu, May 15, 2014 at 1:44 AM, Akira Li <4kir4...@gmail.com> wrote: >> The obvious question is: What *does* work? Does it work when you use >> wget, or some other application? Then go and look at what that sends >> for its authentication headers. Tip: It won't be "Authorization". > > "Authorizati

Re: httplib with NETRC authentication

2014-05-14 Thread Akira Li
pratibha natani writes: > Hi, > > I am trying to establish http connection to a gerrit host using netrc > authentication. I have a netrc file created with following entries: > machine host1.com login name password pass > > I did a debug and saw that my netrc file is being read correctly. Also in

Re: httplib with NETRC authentication

2014-05-14 Thread Akira Li
Chris Angelico writes: > On Wed, May 14, 2014 at 9:33 AM, pratibha natani > wrote: >> I am trying to establish http connection to a gerrit host using >> netrc authentication. I have a netrc file created with following >> entries: >> machine host1.com login name password pass >> >> I did a debug

Re: httplib with NETRC authentication

2014-05-13 Thread Chris Angelico
On Wed, May 14, 2014 at 9:33 AM, pratibha natani wrote: > I am trying to establish http connection to a gerrit host using netrc > authentication. I have a netrc file created with following entries: > machine host1.com login name password pass > > I did a debug and saw that my netrc file is being

httplib with NETRC authentication

2014-05-13 Thread pratibha natani
Hi, I am trying to establish http connection to a gerrit host using netrc authentication. I have a netrc file created with following entries: machine host1.com login name password pass I did a debug and saw that my netrc file is being read correctly. Also in the connection object(after sending