Use telnet to send HTTP requests

Source: Internet
Author: User

Strong http://blog.csdn.net/microtong
Oak CMS Content Management System http://www.oakcms.cn http://www.oakcms.net

Use telnet to send HTTP requests

Telnet is a standard protocol and main method for the Internet remote login service, providing users with the ability to log on to the remote host on a local computer. Telnet is used to remotely log on to the web server and manually enter the HTTP request message. Telnet displays the HTTP Response in the command line window. We hope that this experiment will help you better understand the HTTP protocol.

Enter the doscommand prompt, type the following three lines, and press ENTER twice. Lines 2nd and 3rd are not displayed on the screen, and an HTTP response is returned. The response result is shown in the following figure, that is, the HTTP Response Message.

Telnet www.oakcms.cn 80

GET/index. jsp HTTP/1.1

HOST: www.oakcms.cn

 

Strong http://blog.csdn.net/microtong
Oak CMS Content Management System http://www.oakcms.cn http://www.oakcms.net

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.