Telnet Analog HTTP Interview

Source: Internet
Author: User

The HTTP protocol often uses just a few commands

GET

HEAD

PUT

POST


Here's a quick HTTP GET and head

Give two simple examples:

Example of Get

Telnet ServerIP 80

Get http://www.aaa.com/aaa.html//Enter URL for get command and get

http/1.0 OK
Date:thu, APR 01:19:11 GMT
X-powered-by:asp.net YLTV
x-aspnet-version:2.0.50727
content-type:text/html; charset=gb2312
content-length:28309
X-cache:hit from cache121.aaa.com
Connection:close


The connection to the host has been lost.


Head Sample View HTTP header information for the response can replace the-i parameter of the Curl command under win

Telnet ServerIP 80

Get http://www.aaa.com/aaa.html//Enter URL for get command and get

http/1.0 OK
Date:thu, APR 01:19:11 GMT
X-powered-by:asp.net YLTV
x-aspnet-version:2.0.50727
content-type:text/html; charset=gb2312
content-length:28309
X-cache:hit from cache121.aaa.com
Connection:close


The connection to the host has been lost.


Just like squid has a clear cache of HTTP instructions. Pugre

Assuming that the item clears a page's cache, it can telnet to this squidserver 80port

Then run Pugre http://host/url so you can pugre cache.

But the premise is that squid's ACL agrees!


The original HTTP protocol is so simple!!!

##########################################

The lost Little Yun-dimensional essay

John

Reprint please indicate the source

Telnet Analog HTTP Interview

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.