Igor Sarkisov | ef3f677 | 2020-10-06 04:51:01 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | # |
| 3 | # Server-side |
| 4 | <reply name="1"> |
| 5 | <data> |
| 6 | HTTP/1.1 200 OK |
| 7 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 8 | Server: test-server/fake |
| 9 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT |
| 10 | ETag: "21025-dc7-39462498" |
| 11 | Accept-Ranges: bytes |
| 12 | Content-Length: 6 |
| 13 | Connection: close |
| 14 | Content-Type: text/html |
| 15 | Funny-head: yesyes |
| 16 | |
| 17 | -foo- |
| 18 | </data> |
| 19 | </reply> |
| 20 | |
| 21 | # |
| 22 | # Client-side |
| 23 | <client> |
| 24 | <server> |
| 25 | http |
| 26 | </server> |
| 27 | <name> |
| 28 | HTTP with -d, -G and {} |
| 29 | </name> |
| 30 | <command> |
| 31 | -d "foo=moo&moo=poo" "http://%HOSTIP:%HTTPPORT/{199,199}" -G |
| 32 | </command> |
| 33 | </client> |
| 34 | |
| 35 | # |
| 36 | # Verify data after the test has been "shot" |
| 37 | <verify> |
| 38 | <strip> |
| 39 | ^User-Agent:.* |
| 40 | </strip> |
| 41 | <protocol> |
| 42 | GET /199?foo=moo&moo=poo HTTP/1.1
|
| 43 | Host: %HOSTIP:%HTTPPORT
|
| 44 | Accept: */*
|
| 45 |
|
| 46 | GET /199?foo=moo&moo=poo HTTP/1.1
|
| 47 | Host: %HOSTIP:%HTTPPORT
|
| 48 | Accept: */*
|
| 49 |
|
| 50 | </protocol> |
| 51 | </verify> |
| 52 | </testcase> |