About the Telnet command

Source: Internet
Author: User

Open the Shell window, enter a Telnet carriage entry into Microsoft Telnet>, enter the associated command for set, or enter Help return query-related commands, set Localecho Enter to turn on the local echo feature. Quit Exit settings. Re-enter Telnet localhost 8,080 back to the car (the middle must be the IP address name can not be the hostname), if it is the WinXP system, you need to enter control+] and then press ENTER to enter the command line, and then enter the get/http/ 1.1 Carriage return host:localhost:8080 (which is the hostname, which is different from the previous IP address name) returns to the return carriage to view the echo.

Note: telnet localhost 8080, where localhost is the IP address name, followed by a space not a colon

host:localhost:8080, where localhost is the host name, followed by a colon, not a space

Get / http/1.1, where / for root directory, or written /Jacky/, or written /jacky/index.jsp, and so on.

http/1.1 's telnet command

get/jacky/http/1.1

host:localhost:8080

-------------------------------------

http/1.0 's telnet command

get/jacky/http/1.0

-----------------------------------

Simple telnet command to return message content

get/jacky/

-------------------------------------

Post's command:

post/jacky/http/1.1

host:localhost:8080

content-type:application/x-www-form-urlencoded

Content-length:28

Firstname=zhang&lastname=san

-----------------------------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.