Http: Difference between revisions
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] =") |
No edit summary |
||
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] = | ||
Revision as of 18:52, 22 July 2017
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>