随笔分类 -  网络HTTP相关

PHP header函数设置http报文头示例详解
摘要://定义编码 header( 'Content-Type:text/html;charset=utf-8 '); //Atom header('Content-type: application/atom+xml'); //CSS header('Content-type: text/css'); //Javascript header('Co... 阅读全文
posted @ 2017-04-03 19:27 上善若水-随 阅读(513) 评论(0) 推荐(0)
CMD模拟http请求
摘要:搭建环境 前提是在win7中开启telnet服务 开启方法请参考:http://jingyan.baidu.com/article/870c6fc3cd6fa9b03fe4bee4.html 打开Telnet服务 模拟get请求,访问百度页面 1.打开命令提示符输入:telnet www.baidu 阅读全文
posted @ 2017-03-27 16:59 上善若水-随 阅读(20566) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示