Http
Jump to navigation
Jump to search
HTTP Request Structure from the Client
https://www.webnots.com/what-is-http/
- HTTP Status Code (for example, HTTP/1.1 200 OK)
- Headers (Example – Content-Type: html)
- An empty line.
- A message body which is optional.
$ curl -i http://taichimd.us HTTP/1.1 200 OK Date: Sat, 22 Jul 2017 23:47:53 GMT Server: Apache/2.4.7 (Ubuntu) Last-Modified: Fri, 07 Oct 2016 15:42:47 GMT ETag: "54-53e48431968d0" Accept-Ranges: bytes Content-Length: 84 Vary: Accept-Encoding Content-Type: text/html You may be interested in the <a href="https://taichimd.us/mediawiki">wiki page</a>. $ curl -i http://google.com HTTP/1.1 301 Moved Permanently Location: http://www.google.com/ Content-Type: text/html; charset=UTF-8 Date: Sat, 22 Jul 2017 23:51:10 GMT Expires: Mon, 21 Aug 2017 23:51:10 GMT Cache-Control: public, max-age=2592000 Server: gws Content-Length: 219 X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>301 Moved</TITLE></HEAD><BODY> <H1>301 Moved</H1> The document has moved <A HREF="http://www.google.com/">here</A>. </BODY></HTML>
REST
GET
POST
HTTP/2
5 Ways to Improve Your Website’s PageSpeed Using HTTP/2
HTTP Referrer
HTTP only websites
- http://httpforever.com/
- http://http.badssl.com/ and the source code https://github.com/chromium/badssl.com from the Chromium project