代码没有提供任何输出:
public static void main(String [] args)抛出异常{
URL url = new URL("http://api.themoviedb.org/3/movie/550?api_key=fb7bb23f03b6994dafc674c074d01761");
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setDoOutput(true);
con.setRequestMethod("GET");
con.setRequestProperty("Content-Type", "application/json");
BufferedReader br = new BufferedReader(new InputStreamReader((con.getInputStream())));
String output;
System.out.println("Output from Server .... \n");
while ((output = br.readLine()) != null) {
System.out.println(output);
}
}