cookie.setDomain("localhost");
httpClient.getCookieStore().addCookie(cookie);
//Execute request
RequestExecutor result = executor.execute(
rb.buildGetRequest("/mdc", "mdc-test-param", "foo-test-param", "ignored-param", "ignored-value")
.withHeader("X-Forwarded-For", "foo-forwarded-for")
.withHeader("mdc-test-header", "foo-test-header")
);
JSONObject jb = new JSONObject(result.getContent());