开发者

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

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

why default user-agent is jakarta commo开发者_如何学Cns-httpclient 3.1 if i did not set the user-agent in header list. What is wrong with my question? Please help me


@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..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜