HttpURLConnection httpConnection = (HttpURLConnection) url.openConnection(); String str= httpConnection.getHeaderField("Content-Disposition");
见图