摘要: 1、首先构造http协议报头: String dd = "GET http://www.baidu.com HTTP/1.1" + "\r\n" + "Host: www.baidu.com" + "\r\n" + "User-Agent: Mozilla/5.0 (Windows NT 5.1; 阅读全文
posted @ 2016-01-29 17:26 亦真亦假,何必当真 阅读(970) 评论(0) 推荐(0)
摘要: 前端代码(html5.html): <html> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <head><title>消息推送</title> <script type="text/javascript"> 阅读全文
posted @ 2016-01-29 15:47 亦真亦假,何必当真 阅读(1482) 评论(1) 推荐(0)