title: java.lang.IllegalArgumentException: Host name may not be null, while firing a get request
body: <p>I will appreciate your help on this, below is the code am trying to execute, but all am getting is this exception, I did many changes, but am not able to resolve this.</p>
  
  <p>Please let me know if you have any pointers, am running on android 4.4.4</p>
  
  <pre><code>HttpGet request = new HttpGet("https://s3­-eu-­west-­1.amazonaws.com/developer-application-­test/cart/list");
  resp = client.execute(request);
  
  01-22 22:25:03.885: W/System.err(14697): java.lang.IllegalArgumentException: Host name may not be null
  01-22 22:25:03.886: W/System.err(14697):    at org.apache.http.HttpHost.&lt;init&gt;(HttpHost.java:83)
  01-22 22:25:03.886: W/System.err(14697):    at org.apache.http.impl.client.AbstractHttpClient.determineTarget(AbstractHttpClient.java:508)
  01-22 22:25:03.886: W/System.err(14697):    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:498)
  01-22 22:25:03.886: W/System.err(14697):    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:476)
  </code></pre>