title: URL Illegal Character
body: <p>Here is my code:</p>
  
  <pre><code>HttpClient client = new DefaultHttpClient();
              client.getParams().setParameter(CoreProtocolPNames.USER_AGENT, "android");
              HttpGet request = new HttpGet();
              request.setHeader("Content-Type", "text/plain; charset=utf-8");
              Log.d("URL", convertURL(URL));
              request.setURI(new URI(URL));
              HttpResponse response = client.execute(request);
              bufferedReader = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
              StringBuffer stringBuffer = new StringBuffer("");
              String line = "";
              String NL = System.getProperty("line.separator");
  </code></pre>
  
  <p>I don't know which error in my URL:</p>
  
  <blockquote>
    <p><code>http://localhost/CyborgService/chatservice.php?action=recive_game&amp;nick_sender=mkdarkness&amp;pass=MV030595&amp;date_last=2012-11-18 09:46:37&amp;id_game=1</code></p>
  </blockquote>
  
  <p>I have already used a function to convert URL, but has not worked. But, if I trying open this URL in my Browser, it opens successfully.</p>
  
  <p>Here is my error:</p>
  
  <blockquote>
  <pre><code>11-18 21:46:37.766: E/GetHttp(823): java.net.URISyntaxException: Illegal character in query at index 127: http://192.168.0.182/CyborgService/chatservice.php?action=recive_game&amp;nick_sender=mkdarkness&amp;pass=MV030595&amp;date_last=2012-11-18 09:46:37&amp;id_game=1
  </code></pre>
  </blockquote>