java发送httphead请求Java认证考试
文章作者 100test 发表时间 2010:03:05 23:44:38
来源 100Test.Com百考试题网
public static void main(String[] args) throws Exception {
URL url = new URL("http://www.javaeye.com/").
HttpURLConnection conn = (HttpURLConnection) url.openConnection().
// conn.setDoOutput(true).
conn.setRequestMethod("HEAD").
Map