xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP POST |
| 6 | </keywords> |
| 7 | </info> |
| 8 | # |
| 9 | # Server-side |
| 10 | <reply> |
| 11 | <data> |
| 12 | HTTP/1.1 200 OK swsclose
|
| 13 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 14 | Server: test-server/fake
|
| 15 | Content-Length: 3
|
| 16 |
|
| 17 | OK |
| 18 | </data> |
| 19 | </reply> |
| 20 | |
| 21 | # Client-side |
| 22 | <client> |
| 23 | <server> |
| 24 | http |
| 25 | </server> |
| 26 | # tool is what to use instead of 'curl' |
| 27 | <tool> |
| 28 | lib%TESTNUMBER |
| 29 | </tool> |
| 30 | |
| 31 | <name> |
| 32 | make a POSTFIELDS set to NULL with POSTFIELDSIZE set to zero |
| 33 | </name> |
| 34 | <command> |
| 35 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 36 | </command> |
| 37 | </client> |
| 38 | |
| 39 | # |
| 40 | # Verify data after the test has been "shot" |
| 41 | <verify> |
| 42 | <protocol> |
| 43 | POST /%TESTNUMBER HTTP/1.1
|
| 44 | Host: %HOSTIP:%HTTPPORT
|
| 45 | Accept: */*
|
| 46 | Content-Length: 0
|
| 47 | Content-Type: application/x-www-form-urlencoded
|
| 48 |
|
| 49 | </protocol> |
| 50 | </verify> |
| 51 | </testcase> |