Hi Oleg, I tried my best to design an elegant interface of setting HTTP parameters. But it seems quite hard to do so. Now I have almost done this part, please have a look at it [1] and drop me some feedback.
During the development of this part. There comes two questions: 1. How to remove all the protocol interceptors? I tried removeRequestInterceptorByClass(HttpRequestInterceptor.class) but it seems not work as I expected. 2. Why the codes in tutorial 1.6.1 [2] output the parameters twice? The output looks like this: HTTP/1.1 UTF-8 false null HTTP/1.1 UTF-8 false null Next step I will try to cover the authentication part. Much appreciated if you could provide some suggestions to help me get starting. Best, Lilu [1] http://code.google.com/p/fluent-hc/wiki/HttpParameters [2] http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d4e328 > Hi Lilu > > The concept of HTTP configuration parameters is described here: > > > http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d4e310 > > Essentially HTTP parameters define runtime behavior of HttpClient and > influence the way it generates and executes request as well as processes > responses. > > There are different groups of parameters: request execution, connection, > routing, authentication, state management, HTTP agent and caching. > > They are all described in the tutorial. See this section for example: > > > http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d4e349 > > Some of those parameters are used frequently, some are not. Frequently > used ones we should also be exposed through the 'fluent' API. > > In fact HTTP parameters are the ugliest and the most criticized aspect > of the 4.x API. I wish we had done a better job there. It is important > that the problem is alleviated by providing a better API in the 'fluent' > module. > > > I'll review the code and will get back to you. > > Cheers > > Oleg > > > -- Best regards, Lilu