You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Rob Manning <Ro...@collabraspace.com> on 2006/01/03 16:38:41 UTC

HttpClient version

Hello,

Is there a public API method that one can call to get a string (or 
something) that
indicates the version of HttpClient in use? (3.0rc1, 3.0rc2, 3.0, etc...)?

Rob Manning


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


Re: HttpClient version

Posted by Rob Manning <Ro...@collabraspace.com>.
Oleg Kalnichevski wrote:

>On Tue, Jan 03, 2006 at 11:29:12AM -0500, Rob Manning wrote:
>  
>
>>Oleg Kalnichevski wrote:
>>
>>    
>>
>>>On Tue, Jan 03, 2006 at 10:38:41AM -0500, Rob Manning wrote:
>>>
>>>
>>>      
>>>
>>>>Hello,
>>>>
>>>>Is there a public API method that one can call to get a string (or 
>>>>something) that
>>>>indicates the version of HttpClient in use? (3.0rc1, 3.0rc2, 3.0, etc...)?
>>>>
>>>>  
>>>>
>>>>        
>>>>
>>>Rob,
>>>No, there is not. Why would you want such method in the first place?
>>>
>>>
>>>      
>>>
>>For troubleshooting our applets in the field.  Our product uses an 
>>applet and HttpClient to connect to
>>the server that the applet is being served from.  When we are trying to 
>>troubleshoot an issue, we
>>could use the product version to connote the version of HttpClient that 
>>was shipped with the product. 
>>However, it would be nice to just print it out in the debug log.(I 
>>suppose we could hard-code the
>>version into our product, but that just seems like the wrong thing to 
>>do.  Most software I've used has
>>some class that indicates the version of the app or library.  It also 
>>makes runtime dependency checking
>>possible)
>>
>>Rob
>>    
>>
>
>Rob,
>You can use the user-agent header for that end. The User-Agent header 
>set by HttpClient per default always includes the release version.
>  
>
Ah yes, I've seen that before but forgot about it.   That will suite my 
needs.

>However, if you own the deployment process why do not you simply deploy
>the desired version of HttpClient?
>  
>
We do.  However, in the last version of our product, we shipped 3.0rc2.  
In this version that we've
been testing we'll ship 3.0rc4 (because that is what we started testing 
with).  In the next version we'll
probably shipp 3.0 (final).  The customer knows our product number, not 
necessarily the HttpClient
version.  It's great that we can turn on debugging and get the 
HttpClient version from the User-Agent
header being sent to the server.  Thanks for reminding me!

Rob

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


Re: HttpClient version

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, Jan 03, 2006 at 11:29:12AM -0500, Rob Manning wrote:
> Oleg Kalnichevski wrote:
> 
> >On Tue, Jan 03, 2006 at 10:38:41AM -0500, Rob Manning wrote:
> > 
> >
> >>Hello,
> >>
> >>Is there a public API method that one can call to get a string (or 
> >>something) that
> >>indicates the version of HttpClient in use? (3.0rc1, 3.0rc2, 3.0, etc...)?
> >>
> >>   
> >>
> >
> >Rob,
> >No, there is not. Why would you want such method in the first place?
> > 
> >
> For troubleshooting our applets in the field.  Our product uses an 
> applet and HttpClient to connect to
> the server that the applet is being served from.  When we are trying to 
> troubleshoot an issue, we
> could use the product version to connote the version of HttpClient that 
> was shipped with the product. 
> However, it would be nice to just print it out in the debug log.(I 
> suppose we could hard-code the
> version into our product, but that just seems like the wrong thing to 
> do.  Most software I've used has
> some class that indicates the version of the app or library.  It also 
> makes runtime dependency checking
> possible)
> 
> Rob

Rob,
You can use the user-agent header for that end. The User-Agent header 
set by HttpClient per default always includes the release version.
However, if you own the deployment process why do not you simply deploy
the desired version of HttpClient?

If you seriously want to make sure you are dealing with a specific
library or a specific version you should consider digitally signing all
your dependencies

Oleg


> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 

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


Re: HttpClient version

Posted by Rob Manning <Ro...@collabraspace.com>.
Oleg Kalnichevski wrote:

>On Tue, Jan 03, 2006 at 10:38:41AM -0500, Rob Manning wrote:
>  
>
>>Hello,
>>
>>Is there a public API method that one can call to get a string (or 
>>something) that
>>indicates the version of HttpClient in use? (3.0rc1, 3.0rc2, 3.0, etc...)?
>>
>>    
>>
>
>Rob,
>No, there is not. Why would you want such method in the first place?
>  
>
For troubleshooting our applets in the field.  Our product uses an 
applet and HttpClient to connect to
the server that the applet is being served from.  When we are trying to 
troubleshoot an issue, we
could use the product version to connote the version of HttpClient that 
was shipped with the product. 
However, it would be nice to just print it out in the debug log.(I 
suppose we could hard-code the
version into our product, but that just seems like the wrong thing to 
do.  Most software I've used has
some class that indicates the version of the app or library.  It also 
makes runtime dependency checking
possible)

Rob

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


Re: HttpClient version

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, Jan 03, 2006 at 10:38:41AM -0500, Rob Manning wrote:
> Hello,
> 
> Is there a public API method that one can call to get a string (or 
> something) that
> indicates the version of HttpClient in use? (3.0rc1, 3.0rc2, 3.0, etc...)?
> 

Rob,
No, there is not. Why would you want such method in the first place?

Oleg

> Rob Manning
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 

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