For HC 3.1, JMeter supports a configuration file which can be used to set up global defaults.
There is no concept of global defaults in HC 4.x, but one can initialise HttpClient with a DefaultedHttpParams to get similar functionality. The method DefaultHttpClient.createHttpParams() creates a default set of parameters (HttpVersion etc.), however it is not static (so it means creating a temporary HttpClient) and it forces one to use SyncBasicHttpParams. This makes it harder than it could be to create the initial parameter set. I think it would be useful to expose the defaults as a static method, with parameter HttpParams, and call that from createHttpParams(). Any objections to adding that? Or is there a better way of achieving the same goal? Perhaps the defaults belong in AbstractHttpClient? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
