private void addCookieHeader(HttpGet req) {
    // Set the cookie header
    if (cookie != null) {
      BasicClientCookie cookie = new BasicClientCookie("JSESSIONID", this.cookie);
      cookie.setDomain(req.getURI().getHost());
      cookie.setPath("/");

      BasicCookieStore cookieStore = new BasicCookieStore();
      cookieStore.addCookie(cookie);

      context.setAttribute(HttpClientContext.COOKIE_STORE, cookieStore);
    }
  }
Sends a request to the server and returns a custom response object with the result

@param storeRespCookie if true, retain the value of a "Set-Cookie" header returned in the
       response.
geode-assembly/geode-assembly-test/src/main/java/org/apache/geode/session/tests/Client.java