. , HTML-, POST . ( ) . POST .
GET, POST [4], POST (, ).
200 (Ok) . , 201 (Created) URI Location.
POST .
, HTTP .
Host IP- ,
Referer URL , ,
From ,
Accept MIME- , . , . Accept , ,
Accept-Language , , ,
Accept-Charset
Content-Type MIME- , ( )
Content-Length , ( )
Range , ,
Connection TCP-. Close, , . Keep-Alive TCP-,
User-Agent
, HTTP . .
HTTP (HyperText Transfer Protocol - RFC 1945, RFC 2616) - .
. CGI- , , .
Entity-Header , Entity-Body.
, . Entity-Header : Allow, Content-Encoding, Content-Length, Content-Type, Expires, Last-Modified, extension-header.
|
|
Allow .
: "Allow: GET | HEAD\n".
POST Request-Line. . Allow ..
Content-Encoding Entity-Body.
: "ontent-Encoding: x-gzip | x-compress | \n".
: "ontent-Encoding: x-gzip\n". "|" "", ...
, , POST: "ontent-Encoding: application/x-www-form-urlencoded\n".
Content-Length , Entity-Body. Content-Length , MIME, "external/entity-body". .
: "Content-Length: 26457\n".
Content-Type MIME- , ( ).
: "Content-Type: text/html\n".
Expires , .
: "Expires: date\n". Date General-Header.
Last-Modified .
: "Last-Modified: date\n". Date General-Header.
Extention-header , , , , , . "ParameterName: parametervalue\n". , - , .
: "Cookie: r=1\r\n" .
:
POST http://www.site.ru/news.html HTTP/1.0\r\n
Host: www.site.ru\r\n
Referer: http://www.site.ru/index.html\r\n
Cookie: income=1\r\n
Content-Type: application/x-www-form-urlencoded\r\n
Content-Length: 35\r\n
\r\n
login=Petya%20Vasechkin&password=qq
Content-Type Content-Length . Content-Length , , \r\n. , GET Request-URI, Entity-Body. , , .