String url = "http://maps.googleapis.com/maps/api/directions/xml?origin=Chicago,IL&destination=Los+Angeles,CA&waypoints=Joplin,MO|Oklahoma+City,OK&sensor=false";
URL google = new URL(url);
HttpURLConnection con = (HttpURLConnection) google.openConnection();
Run Code Online (Sandbox Code Playgroud)
我使用BufferedReader来打印我得到的内容403错误
相同的URL在浏览器中正常工作.任何人都可以建议.
java ×1