title: HttpGet get = new HttpGet(url); giving exceptions
body: <p>I am trying to do a very simple thing which was working a couple of days ago.</p>
  
  <pre><code>CloseableHttpClient client = HttpClientBuilder.create().build();
              HttpGet get = new HttpGet(url);
              HttpResponse response = client.execute(get);
  </code></pre>
  
  <p>It is giving the following error</p>
  
  <pre><code>Caused by:
              java.lang.IllegalStateException: Unsupported cookie spec: default
                  at org.apache.http.cookie.CookieSpecRegistry.getCookieSpec(CookieSpecRegistry.java:110)
                  at org.apache.http.cookie.CookieSpecRegistry$1.create(CookieSpecRegistry.java:163)
                  at org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCookies.java:157)
                  at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132)
                  at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:166)
                  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:485)
                  at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:878)
                  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:84)
                  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:109)
                  at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
  </code></pre>
  
  <p>I faced this error earlier using a deprecated client and I changed it to using HTTPClientBuilder. I am not sure why it is giving on HTTPGet.
  Any help is greatly appreciated.</p>