[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/HTTP/Reference/Methods/POST [Back]  [Original]

POST - HTTP | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

POST

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

HTTP- POST . Content-Type.

PUT POST , PUT : , ( ), POST , , .

POST HTML . element or the formenctype attribute of the <input> or <button> elements:"> enctype <form> formenctype <input> <button>:

  • application/x-www-form-urlencoded: , '&', '=' . - - percent encoded: , ( multipart/form-data)
  • multipart/form-data: ("body part"), ("boundary"), . Content-Disposition
  • text/plain

POST , HTML-, , XMLHttpRequest . HTTP 1.1, POST :

  • , , ;
  • ;
  • , , , ;
  • .
HTML-

In this article

POST /index.html

, application/x-www-form-urlencoded content type:

http
POST / HTTP/1.1
Host: foo.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 13

say=Hi&to=Mom

, multipart/form-data content type:

http
POST /test.html HTTP/1.1
Host: example.org
Content-Type: multipart/form-data;boundary="boundary"

--boundary
Content-Disposition: form-data; name="field1"

value1
--boundary
Content-Disposition: form-data; name="field2"; filename="example.txt"

value2
--boundary--

Specification
HTTP Semantics
# POST


Web Proxy Viewer  |  New URL  |  Original Page