CMD模拟http请求
时间:2017-03-27 17:04:03
收藏:0
阅读:1348
搭建环境
前提是在win7中开启telnet服务
开启方法请参考:http://jingyan.baidu.com/article/870c6fc3cd6fa9b03fe4bee4.html
打开Telnet服务
模拟get请求,访问百度页面
1.打开命令提示符输入:telnet www.baidu.com 80 按enter

2.按ctrl+] 打开回显功能(便于查看自己输入的字符) (注意继续按enter键)

3.输入
GET /index.html HTTP/1.1
HOST:www.baidu.com
HOST:www.baidu.com
原文:http://www.cnblogs.com/boundless-sky/p/6627592.html
评论(0)