| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
HTTP/1.1 200 OK |
| 5 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 6 |
Content-Length: 4 |
| 7 |
|
| 8 |
moo |
| 9 |
</data> |
| 10 |
</reply> |
| 11 |
|
| 12 |
# Client-side |
| 13 |
<client> |
| 14 |
<server> |
| 15 |
http |
| 16 |
</server> |
| 17 |
<features> |
| 18 |
SSL |
| 19 |
</features> |
| 20 |
<name> |
| 21 |
HTTP GET two URLs over a single proxy with persistent connection |
| 22 |
</name> |
| 23 |
<command> |
| 24 |
http://deathstar.another.galaxy/183 http://a.galaxy.far.far.away/183 --proxy http://%HOSTIP:%HTTPPORT |
| 25 |
</command> |
| 26 |
</client> |
| 27 |
|
| 28 |
# Verify data after the test has been "shot" |
| 29 |
<verify> |
| 30 |
<strip> |
| 31 |
^User-Agent: curl/.* |
| 32 |
</strip> |
| 33 |
<protocol> |
| 34 |
GET http://deathstar.another.galaxy/183 HTTP/1.1 |
| 35 |
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 |
| 36 |
Host: deathstar.another.galaxy |
| 37 |
Pragma: no-cache |
| 38 |
Accept: */* |
| 39 |
Proxy-Connection: Keep-Alive |
| 40 |
|
| 41 |
GET http://a.galaxy.far.far.away/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: a.galaxy.far.far.away |
| 44 |
Pragma: no-cache |
| 45 |
Accept: */* |
| 46 |
Proxy-Connection: Keep-Alive |
| 47 |
|
| 48 |
</protocol> |
| 49 |
|
| 50 |
</verify> |