I am using apache-httpclient-4.3. I would analyze a http request, in particular the query string parameters, but
@Deprecated
public HttpParams getParams()
Deprecated. (4.3) use constructor parameters of configuration API provided by HttpClient
I am not sure to understand what this means. I should use the constructor parameters of some configuration API (what's that? HostConfiguration is no more available as class). But during the construction phase I directly pass the query parameters through the url:
HttpGet request = new HttpGet("http://example.com/?var1=value1&var2=value2");
I can't find a way to read back the parameters (var1, var2) from my request object without using deprecated methods, which should be simple as to get attributes from an object.
HttpParams
does not return any contents of the query string.