2020-01-05 04:40:49 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
-F
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2020-01-05 04:40:49 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
|
|
ETag: "21025-dc7-39462498"
|
|
|
|
Accept-Ranges: bytes
|
|
|
|
Content-Length: 6
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
-foo-
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2022-09-26 21:38:41 +08:00
|
|
|
<features>
|
|
|
|
Mime
|
|
|
|
</features>
|
2020-01-05 04:40:49 +08:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2023-10-04 17:35:54 +08:00
|
|
|
<name>
|
2020-01-05 04:40:49 +08:00
|
|
|
Multipart formpost to two URLs, the first failing
|
2023-10-04 17:35:54 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://0 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -F=
|
2020-01-05 04:40:49 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strippart>
|
2023-09-12 18:51:21 +08:00
|
|
|
s/^--------------------------[A-Za-z0-9]*/------------------------------/
|
|
|
|
s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
|
2020-01-05 04:40:49 +08:00
|
|
|
</strippart>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
POST /%TESTNUMBER HTTP/1.1
|
2020-03-10 10:56:50 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2020-01-05 04:40:49 +08:00
|
|
|
Accept: */*
|
2023-09-12 18:51:21 +08:00
|
|
|
Content-Length: 138
|
2020-01-05 04:40:49 +08:00
|
|
|
Content-Type: multipart/form-data; boundary=----------------------------
|
|
|
|
|
|
|
|
------------------------------
|
|
|
|
Content-Disposition: form-data
|
|
|
|
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|