To send an HTTP request using Telnet

Source: Internet
Author: User

    • To send an HTTP request using Telnet

Writing this blog, in fact, there is not much practical significance, but it is very necessary, if the use of a good telnet command, you can well understand some of the concepts of HTTP, especially the persistent link http1.1.

To use the Telnet command, you must first open the Telnet client and server, add it in the Control Panel, and then use services.msc to check if it is installed.

For example: Telnet localhost 8080, and then you can see the corresponding return.




If we use http1.1, we are continuing to link, that is, we can continuously send requests on the same link.
Head/huhu.html http/1.1host:www.baidu.com



If we use the http1.0, the link is broken directly after the response is returned.
Head/huhu.html http/1.0host:www.baidu.com



Of course we use http/1.1, we can also set the connection state, for example:

Head/http/1.1host:www.baidu.comconnection:keep-alive


Head/http/1.1host:www.baidu.comconnection:close

To send an HTTP request using Telnet

Related Article

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.