title: 400 error with HttpClient for a link with an anchor
body: <p>Here is my code:</p>
  
  <pre><code>DefaultHttpClient client = new DefaultHttpClient();
  HttpGet request = new HttpGet(url);
  HttpResponse response = client.execute(request);
  </code></pre>
  
  <p>This works for every url I have tried so far, except for some urls that contain an anchor.  Some of these anchored urls return a 400. The weird thing is that it isn't all links that contain an anchor, a lot of them work just fine.</p>
  
  <p>Unfortunately, I have to be really general as I can't provide the specific urls here.</p>
  
  <p>The links are completely valid and work just fine in any browser, but the HttpClient returns a 400 when trying the link.  If I remove the anchor it will work.</p>
  
  <p>Any ideas what to look for?</p>
  
  <p>For example:  <code>http://www.somedomain.com/somedirectory/somepage#someanchor</code></p>
  
  <p>Sorry again for the generics</p>
  
  <p>EDIT: I should mention this is for Android.</p>