Compare Revisions
POST
Revision 1086155:
Revision 1086155 by teoli on
Revision 1086465:
Revision 1086465 by teoli on
- Title:
- POST
- POST
- Slug:
- Web/HTTP/Methods/POST
- Web/HTTP/Methods/POST
- Tags:
- "HTTP" "Reference" "Request method"
- "HTTP" "Reference" "Request method"
- Comment:
- 2nd example
- Content:
-
Revision 1086155 Revision 1086465 t t 85 <h2> 86 Example 87 </h2> 88 <p> 89 A simple form using the default <code>application/x-www-for > m-urlencoded</code> content type: 90 </p> 91 <pre class="line-numbers language-html"> 92 <code class="language-html">POST / HTTP/1.1 93 Host: foo.com 94 Content-Type: application/x-www-form-urlencoded 95 Content-Length: 13 96 97 say=Hi&to=Mom</code> 98 </pre> 99 <p> 100 A form using the <code>multipart/form-data</code> content t > ype: 101 </p> 102 <pre> 103 104 POST /test.html HTTP/1.1 105 Host: example.org 106 Content-Type: multipart/form-data;boundary="boundary" 107 108 --boundary 109 Cache-Disposition: form-data; name="field1" 110 111 value1 112 --boundary 113 Cache-Disposition: form-data; name="field2"; filename="example.tx > t" 114 115 value2 116 </pre>