title: Why getting cookie back for HttpHead method?
body: <p>We are using HttpHead to get the info from our customer's website, but for some reason we are getting cookie in the response as well. Is it expected? Is there a way to set to not return cookie? </p>
  
  <p>The following is the code we have </p>
  
  <pre><code>        HttpClient httpclient = new DefaultHttpClient();
          // the time it takes to open TCP connection.
          httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, this.timeout);
  
          // timeout when server does not send data.
          httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, this.timeout);
  
          // the head method
          HttpHead httphead = new HttpHead(url);
  
          HttpResponse response = httpclient.execute(httphead);
  </code></pre>
  
  <p>And we are getting the following warning, indicating that there was cookie returned with response as well. </p>
  
  <p>[WARN] ResponseProcessCookies - Cookie rejected: "[version: 0][name: DXFXFSG][value: AUR][domain: ...omitted...][path: /][expiry: null]". Illegal domain attribute "...omitted...". Domain of origin: "...omitted..."</p>