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

  

猜你喜欢

转载自www.cnblogs.com/rdchenxi/p/10953151.html