Simulate http request through cmd command prompt telnet in win7

build environment

The premise is to open the telnet service in win7

Please refer to the opening method: http://jingyan.baidu.com/article/870c6fc3cd6fa9b03fe4bee4.html

Open Telnet service

Simulate get request, visit Baidu page
1. Open a command prompt and enter: telnet 10.99.1.52 8080


 
2. Press ctrl+] to open the echo function (easy to view the characters you entered)


 
3. Press the Enter key to enter the command input interface


 
4. Enter
GET /index.jsp HTTP/1.1
connection: close
Host: 10.99.1.52:8080
Press Enter 2 times


 
 
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326314901&siteId=291194637