2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2006-07-27 18:44:56 -04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP FORMPOST
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK swsclose
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2006-07-27 18:44:56 -04:00
|
|
|
Server: test-server/fake
|
2006-11-25 08:32:04 -05:00
|
|
|
Content-Length: 11
|
2006-07-27 18:44:56 -04:00
|
|
|
|
|
|
|
blablabla
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP RFC1867-type formposting with custom Content-Type
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -F name=daniel -H "Content-Type: text/info"
|
2006-07-27 18:44:56 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strippart>
|
2013-06-24 16:24:35 -04:00
|
|
|
s/^--------------------------[a-z0-9]*/--------------------------/
|
|
|
|
s/boundary=------------------------[a-z0-9]*/boundary=------------------------/
|
2006-07-27 18:44:56 -04:00
|
|
|
</strippart>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
POST /want/%TESTNUMBER HTTP/1.1
|
2007-09-14 15:32:31 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2006-07-27 18:44:56 -04:00
|
|
|
Accept: */*
|
2017-09-02 14:08:45 -04:00
|
|
|
Content-Length: 146
|
2013-06-24 16:24:35 -04:00
|
|
|
Content-Type: text/info; boundary=------------------------
|
2006-07-27 18:44:56 -04:00
|
|
|
|
2013-06-24 16:24:35 -04:00
|
|
|
--------------------------
|
2017-09-02 14:08:45 -04:00
|
|
|
Content-Disposition: attachment; name="name"
|
2006-07-27 18:44:56 -04:00
|
|
|
|
|
|
|
daniel
|
2013-06-24 16:24:35 -04:00
|
|
|
----------------------------
|
2006-07-27 18:44:56 -04:00
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|