Compare Revisions

POST

Change Revisions

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
tt85    <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
93Host: foo.com
94Content-Type: application/x-www-form-urlencoded
95Content-Length: 13
96 
97say=Hi&amp;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 
104POST /test.html HTTP/1.1 
105Host: example.org 
106Content-Type: multipart/form-data;boundary="boundary" 
107 
108--boundary 
109Cache-Disposition: form-data; name="field1" 
110 
111value1 
112--boundary 
113Cache-Disposition: form-data; name="field2"; filename="example.tx
 >t" 
114 
115value2
116</pre>

Back to History