hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Preemptive authentication examples wrong
Date Wed, 24 Aug 2011 12:04:30 GMT
On Wed, 2011-08-24 at 12:32 +0200, Christian Migowski wrote:
> On Wed, Aug 24, 2011 at 11:25 AM, Oleg Kalnichevski <olegk@apache.org> wrote:
> 
> >> Still: forcing the users to implement that code snippet every time
> >> they need to use preemptive auth is just this: forcing the user to do
> >> unnecessary stuff because you want to.
> >> You can and have put an explicit statement about why preemptive auth
> >> should be used carefully or best not used in the documentation
> >> everywhere (with javadoc its even available "during programming"), and
> >> this for sure will raise awareness at the users side, but the code to
> >> be implemented does not show at all that preemptive auth is not
> >> advised, it is just a PITA and this indicates a certain mindset of
> >> you.
> >
> > Please RTFM.
> 
> trust me, I did. I guess you cannot see this, but all of the code is
> just self-serving boilerplate. You know, all I want to make httpclient
> do is sending this:
> 
> GET /redmine/users/4.xml HTTP/1.1
> Host: example.com
> Connection: Keep-Alive
> Authorization: Basic dTQxMzQ4MTp1NDEzNDgx
> 
> instead of omitting the Authorization line in the first request and
> sending it only after a 401 was received.
> To me, libraries should be as useful as possible, making things easy,
> which is clearly not the case with httpclient and this particular
> issue - and all of this without a real need, but just because the lib
> dev thinks he is smarter and needs to force-educate his users.
> 
> regards,
> christian
> 

I do not see a point making silly things easier, but you are welcome to
disagree.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message