Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why default user-agent is jakarta commons-httpclient 3.1 [closed]

Tags:

user-agent

why default user-agent is jakarta commons-httpclient 3.1 if i did not set the user-agent in header list. What is wrong with my question? Please help me

like image 371
Sarika.S Avatar asked Apr 01 '11 10:04

Sarika.S


1 Answers

@1355 : Dont Worry!

In org.apache.commons.httpclient.params there is one class called "DefaultHttpParamsFactory.java". In that class the default param is set.

 protected HttpParams createParams() {
        HttpClientParams params = new HttpClientParams(null);

        params.setParameter(HttpMethodParams.USER_AGENT, "Jakarta Commons-HttpClient/3.1");
.
.
.
.
.
.
}

If a particular parameter value has not been set, this value will be drawn here.

I think it may help you..

like image 84
1354 Avatar answered Oct 04 '22 22:10

1354