首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 互联网 >

仿冒 referer

2012-07-16 
伪造 refererHttpURLConnection conn (HttpURLConnection) new URL(http://localhost:8080/Test/Single

伪造 referer

HttpURLConnection conn = (HttpURLConnection) new URL("http://localhost:8080/Test/Single").openConnection();conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon;)");conn.setRequestProperty("Accept-Encoding", "gzip");conn.setRequestProperty("referer", "www.163.com");conn.setRequestProperty("cookie", "www.163.com");InputStream input = conn.getInputStream();conn.disconnect();

?

热点排行