URISyntaxError when I called request.setURI(new URI(url)) while url is working fine on all browsers
<p>I have a problem that when I call a url with many parameters for JSON response, then it shows an URISyntaxError but the same url is working fine on all browsers. I unable to understand what is going wrong?</p>

<pre><code>The URL is: http://apibeta.highgearmedia.com/v1/vehicles/get-make-models.json?sort=mpg&amp;filter=category&amp;client-id=10030812&amp;from=convertible&amp;signature=QOwiWhG2T47KaQoyUztbag==
</code></pre>

<p>Code:</p>

<pre><code>HttpClient client = new DefaultHttpClient();
            HttpGet request = new HttpGet();
            request.setURI(new URI(api_url));

            HttpResponse response = client.execute(request);
            InputStream ips = response.getEntity().getContent();
            BufferedReader buf = new BufferedReader(new InputStreamReader(ips,
                    "UTF-8"));

            StringBuilder sb = new StringBuilder();
            String s;
            while (true) {
                s = buf.readLine();
                if (s == null || s.length() == 0)
                    break;
                sb.append(s);

            }
            buf.close();
            ips.close();
            return sb.toString();
</code></pre>

<p><strong>Error:</strong></p>

<pre><code>05-10 23:03:45.326: W/System.err(2227): java.net.URISyntaxException: Illegal character in query at index 161: http://apibeta.highgearmedia.com/v1/vehicles/get-make-models.json?sort=mpg&amp;filter=category&amp;client-id=10030812&amp;from=convertible&amp;signature=QOwiWhG2T47KaQoyUztbag==
05-10 23:03:45.326: W/System.err(2227):     at java.net.URI.validateQuery(URI.java:434)
05-10 23:03:45.326: W/System.err(2227):     at java.net.URI.parseURI(URI.java:340)
05-10 23:03:45.335: W/System.err(2227):     at java.net.URI.&lt;init&gt;(URI.java:72)
05-10 23:03:45.335: W/System.err(2227):     at com.TCC.android.ResearchList.getJsonSring(ResearchList.java:3892)
05-10 23:03:45.335: W/System.err(2227):     at com.TCC.android.ResearchList$67.run(ResearchList.java:4077)
</code></pre>
