lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | HTTP proxy |
| 7 | persistent connection |
| 8 | </keywords> |
| 9 | </info> |
| 10 | |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data> |
| 14 | HTTP/1.1 200 OK
|
| 15 | Date: Thu, 09 Nov 2010 14:49:00 GMT
|
| 16 | Content-Length: 4
|
| 17 |
|
| 18 | moo |
| 19 | </data> |
| 20 | </reply> |
| 21 | |
| 22 | # Client-side |
| 23 | <client> |
| 24 | <server> |
| 25 | http |
| 26 | </server> |
| 27 | <name> |
| 28 | HTTP GET two URLs over a single proxy with persistent connection |
| 29 | </name> |
| 30 | <command> |
| 31 | http://deathstar.another.galaxy/183 http://a.galaxy.far.far.away/183 --proxy http://%HOSTIP:%HTTPPORT |
| 32 | </command> |
| 33 | </client> |
| 34 | |
| 35 | # Verify data after the test has been "shot" |
| 36 | <verify> |
| 37 | <strip> |
| 38 | ^User-Agent: curl/.* |
| 39 | </strip> |
| 40 | <protocol> |
| 41 | GET http://deathstar.another.galaxy/183 HTTP/1.1
|
| 42 | User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.6b zlib/1.1.4 libidn/0.4.6
|
| 43 | Host: deathstar.another.galaxy
|
| 44 | Accept: */*
|
| 45 | Proxy-Connection: Keep-Alive
|
| 46 |
|
| 47 | GET http://a.galaxy.far.far.away/183 HTTP/1.1
|
| 48 | User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.6b zlib/1.1.4 libidn/0.4.6 |
| 49 | Host: a.galaxy.far.far.away
|
| 50 | Accept: */*
|
| 51 | Proxy-Connection: Keep-Alive
|
| 52 |
|
| 53 | </protocol> |
| 54 | |
| 55 | </verify> |
| 56 | </testcase> |