How do I add query parameters to a GetMethod (using Java commons-httpclient)?
Post methods have post parameters, but get methods do not. Query parameters are embedded in the URL. The current version of HttpClient accepts a string in the constructor. If you wanted to add the key, value pair above, you could use: String url = “http://www.example.com/page?key=value”; GetMethod method = new GetMethod(url); A good starting tutorial can … Read more