mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
3fd80c7b59
The threee tags `<name>`, `</name>` and `<command>` were frequently used with a leading space that this removes. The reason this habbit is so widespread in testcases is probably that they have been copy and pasted. Hence, fixing them all now might curb this practice from now on. Closes #12028
59 lines
944 B
Plaintext
59 lines
944 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP POST
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
HTTP/1.1 100 Continue swsclose
|
|
Silly-header: yeeeees
|
|
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
Mime
|
|
</features>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
HTTP multipart formpost with only a 100 reply
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -F name=daniel
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<strip>
|
|
^Content-Type: multipart/form-data.*
|
|
^-----------------------.*
|
|
</strip>
|
|
<protocol>
|
|
POST /%TESTNUMBER HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
Content-Length: 157
|
|
Content-Type: multipart/form-data; boundary=----------------------------4f12fcdaa3bc
|
|
|
|
------------------------------4f12fcdaa3bc
|
|
Content-Disposition: form-data; name="name"
|
|
|
|
daniel
|
|
------------------------------4f12fcdaa3bc--
|
|
</protocol>
|
|
<errorcode>
|
|
52
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|