ITeye博客

java设置userAgent,Referer等参数

make19830723 · 2011-01-24 09:18 · java · 编程语言 · Java · Windows · Markdown

设置userAgent connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon;)");

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。