ABNF语法

http典型的请求场景

 

来自极客时间课件

 http协议介绍

.

[c:\~]$ telnet www.taohui.pub 80


Host 'www.taohui.pub' resolved to 116.62.160.193.
Connecting to 116.62.160.193:80...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
  GET /wp-content/plugins/Pure-Highlightjs_1.0/assets/pure-highlight.css?ver=0.1.0 HTTP/1.1
  Host:www.taohui.pub  输入后两个回车

HTTP/1.1 200 OK
Server: openresty/1.15.8.1
Date: Thu, 30 May 2019 17:34:50 GMT
Content-Type: text/css
Content-Length: 108
Last-Modified: Thu, 27 Dec 2018 07:35:33 GMT
Connection: keep-alive
ETag: "5c2480c5-6c"
Expires: Thu, 06 Jun 2019 17:34:50 GMT
Cache-Control: max-age=604800
Accept-Ranges: bytes

pre.pure-highlightjs {
    background-color: transparent;!important;
    border: none;
    padding: 0;
}HTTP/1.1 400 Bad Request
Server: openresty/1.15.8.1
Date: Thu, 30 May 2019 17:34:53 GMT
Content-Type: text/html
Content-Length: 163
Connection: close

  

 

posted @ 2019-05-31 08:13  烟雨楼台,行云流水  阅读(431)  评论(0编辑  收藏  举报