On Thu, 2017-02-16 at 09:11 -0800, Gary Gregory wrote:
> On Feb 16, 2017 7:02 AM, "Oleg Kalnichevski" <[email protected]>
> wrote:
> 
> On Wed, 2017-02-15 at 13:19 -0800, Gary Gregory wrote:
> > Hi All:
> > 
> > Right now our user agent logs as:
> > 
> > User-Agent: Apache-HttpClient/4.5.2 (Java/1.7.0_80)
> > 
> > I think this would be more helpful when debugging:
> > 
> > User-Agent: Apache-HttpClient/4.5.2 Apache-HttpCore/4.4.5
> > Java/1.7.0_80
> > 
> > Thoughts?
> > 
> > Gary
> > 
> 
> 
> Gary
> 
> 
> What would be the benefit of doing so?
> 
> 
> At work we a ship a large server (and client libs) which is
> configurable
> out the wazoo. When we get debug logs from customers, and we need to
> reproduce issues, it is always best to get the most accurate picture
> of
> what is going on so we can duplicate.
> 

Gary

It should be quite easy to plug in a custom protocol interceptor that
generates a user agent header with additional runtime details. However,
I am not sure it would really make sense to change the format used by
default. I hope you agree.

Oleg  


> 
> For instance for HttpAsyncClient we would have include HttpCore,
> HttpCore NIO, HttpClient and HttpAsyncClient versions. It seems to
> make
> more complex then necessary.
> 
> 
> It is still a lot less complex than what a web browser submits ;-)
> 
> I'm only looking to make debugging easier for myself without having
> to do a
> screenshare to pick apart a customers config.
> 
> Gary
> 
> 
> Oleg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to