hurl/integration/tests/multipart_form_data.html
2020-11-16 21:34:38 +01:00

2 lines
1.2 KiB
HTML

<div class="hurl-file"><div class="hurl-entry"><div class="request"><span class="line"><span class="comment"># curl -v -F key1=value1 -F upload1=@tests/data.txt -Fupload2=@tests/data.html -Fupload3="@tests/data.txt;type=text/html" http://localhost:8000/multipart-form-data</span></span><span class="line"><span class="method">POST</span> <span class="url">http://localhost:8000/multipart-form-data</span></span></div><span class="line section-header">[MultipartFormData]</span></span><span class="line"><span class="string">key1</span><span>:</span> <span class="string">value1</span></span><span class="line"><span class="string"><span class="string">upload1</span></span>: file,<span class="string">data.txt</span>;</span><span class="line"><span class="string"><span class="string">upload2</span></span>: file,<span class="string">data.html</span>;</span><span class="line"><span class="string"><span class="string">upload3</span></span>: file,<span class="string">data.txt</span>; <span class="string">text/html</span></span><div class="response"><span class="line"></span><span class="line"><span class="version">HTTP/1.0</span> <span class="status">200</span></span></div></div><span class="line"></span><span class="line"></span><span class="line"></span></div>