Server returned HTTP response code: 400
<p>I am reading data from a webservice. The issue if I put the link on the browser it works fine. When I run like this give me error. I am suspecting is it due to the way how I send my parameters. My paramater list has this <code>dID=1,5,7,11,14,18,26&amp;FromDate=18 Sep 2012 00:00 am&amp;ToDate=18 Sep 2012 10:00 am</code>. Do I need to do some encoding here?</p>

<pre><code>URL xmlURLDM = new URL(urlDM);
InputStream xml2 = xmlURLDM.openStream();
</code></pre>

<p>I get this error </p>

<pre><code>java.io.IOException: Server returned HTTP response code: 400 for URL: 
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1612)
        at java.net.URL.openStream(URL.java:1035)
        at xmlreader.main(xmlreader.java:172)
</code></pre>
