2020-03-06 11:46:39 +03:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
|
|
|
FORM
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 17:00:03 +03:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2020-03-06 11:46:39 +03:00
|
|
|
Server: test-server/fake swsclose
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
hello
|
|
|
|
</data>
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 17:00:03 +03:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2020-03-06 11:46:39 +03:00
|
|
|
Server: test-server/fake swsclose
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
hello
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2022-09-26 16:38:41 +03:00
|
|
|
<features>
|
2022-11-15 19:50:22 +03:00
|
|
|
form-api
|
2022-09-26 16:38:41 +03:00
|
|
|
</features>
|
2020-03-06 11:46:39 +03:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
# tool is what to use instead of 'curl'
|
|
|
|
<tool>
|
2021-03-12 19:38:26 +03:00
|
|
|
lib%TESTNUMBER
|
2020-03-06 11:46:39 +03:00
|
|
|
</tool>
|
|
|
|
|
2023-10-04 12:35:54 +03:00
|
|
|
<name>
|
2020-03-06 11:46:39 +03:00
|
|
|
Request pause from form read callback: easy
|
2023-10-04 12:35:54 +03:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 19:38:26 +03:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2020-03-06 11:46:39 +03:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strippart>
|
2023-09-12 13:51:21 +03:00
|
|
|
s/^--------------------------[A-Za-z0-9]*/------------------------------/
|
|
|
|
s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
|
2020-03-06 11:46:39 +03:00
|
|
|
</strippart>
|
|
|
|
<protocol>
|
2021-03-12 19:38:26 +03:00
|
|
|
POST /%TESTNUMBER HTTP/1.1
|
2020-03-06 11:46:39 +03:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
2023-09-12 13:51:21 +03:00
|
|
|
Content-Length: 154
|
2020-03-06 11:46:39 +03:00
|
|
|
Content-Type: multipart/form-data; boundary=----------------------------
|
|
|
|
|
|
|
|
------------------------------
|
|
|
|
Content-Disposition: form-data; name="field"
|
|
|
|
|
|
|
|
AB
|
|
|
|
--------------------------------
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|