Http: Difference between revisions

From 太極
Jump to navigation Jump to search
(Created page with "= [http://en.wikipedia.org/wiki/Representational_state_transfer REST] = = GET = = [http://en.wikipedia.org/wiki/POST_%28HTTP%29 POST] =")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
= 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.
<pre>
$ 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>
</pre>
= [http://en.wikipedia.org/wiki/Representational_state_transfer REST] =
= [http://en.wikipedia.org/wiki/Representational_state_transfer REST] =


Line 4: Line 45:


= [http://en.wikipedia.org/wiki/POST_%28HTTP%29 POST] =
= [http://en.wikipedia.org/wiki/POST_%28HTTP%29 POST] =
= HTTP/2 =
[https://www.makeuseof.com/tag/ways-improve-websites-pagespeed-using-http2/ 5 Ways to Improve Your Website’s PageSpeed Using HTTP/2]
= HTTP Referrer =
* [https://www.dummies.com/article/business-careers-money/business/marketing/how-to-track-referrers-to-your-web-marketing-site-172888/ How to Track Referrers to Your Web Marketing Site]
* [https://www.howtogeek.com/115483/htg-explains-learn-how-websites-are-tracking-you-online/ The Many Ways Websites Track You Online]

Latest revision as of 18:45, 27 May 2023

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