403 error in accessing an URL but works fine in browsers
<pre><code>String url = "http://maps.googleapis.com/maps/api/directions/xml?origin=Chicago,IL&amp;destination=Los+Angeles,CA&amp;waypoints=Joplin,MO|Oklahoma+City,OK&amp;sensor=false";

        URL google = new URL(url);
        HttpURLConnection con = (HttpURLConnection) google.openConnection();
</code></pre>

<p>and I use BufferedReader to print the content I get 403 error </p>

<p>The same URL works fine in the browser. Could any one suggest. </p>
