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:

Open Telnet service

Simulate get request, visit Baidu page
1. Open a command prompt and enter: telnet 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
Press Enter 2 times


Guess you like