public static void main(String[] args) throws Exception {
URL url = new URL(
HttpURLConnection conn = (HttpURLConnection) url
// conn
conn
Map<String
Iterator<String> iterator = headerMap
while (iterator
String key = iterator
List<String> values = headerMap
System
}
}
返回結果
Java代碼
null:[HTTP/
ETag:[
Date:[Thu
Content
Last
Content
Accept
Server:[lig]
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26747.html