1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6HTTP CONNECT 7proxytunnel 8</keywords> 9</info> 10 11# 12# Server-side 13<reply> 14<data> 15HTTP/1.1 200 OK 16Date: Tue, 09 Nov 2010 14:49:00 GMT 17Server: test-server/fake swsclose 18Content-Type: text/html 19Funny-head: yesyes 20Content-Length: 9 21 22contents 23</data> 24<connect> 25HTTP/1.1 200 Mighty fine indeed 26 27</connect> 28<datacheck> 29HTTP/1.1 200 Mighty fine indeed 30 31HTTP/1.1 200 OK 32Date: Tue, 09 Nov 2010 14:49:00 GMT 33Server: test-server/fake swsclose 34Content-Type: text/html 35Funny-head: yesyes 36Content-Length: 9 37 38contents 39</datacheck> 40</reply> 41 42# 43# Client-side 44<client> 45<features> 46Debug 47proxy 48</features> 49<server> 50http 51http-proxy 52</server> 53<name> 54CONNECT with short sends 55</name> 56<setenv> 57# make the first send cut off after this amount of data 58CURL_SMALLREQSEND=8 59# make repeated sends small too 60CURL_SMALLSENDS=8 61</setenv> 62<command> 63http://test.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p -x %HOSTIP:%PROXYPORT -d "datatopost=ohthatsfunyesyes" 64</command> 65</client> 66 67# 68# Verify data after the test has been "shot" 69<verify> 70<proxy> 71CONNECT test.%TESTNUMBER:%HTTPPORT HTTP/1.1 72Host: test.%TESTNUMBER:%HTTPPORT 73User-Agent: curl/%VERSION 74Proxy-Connection: Keep-Alive 75 76</proxy> 77<protocol nonewline="yes"> 78POST /we/want/that/page/%TESTNUMBER HTTP/1.1 79Host: test.%TESTNUMBER:%HTTPPORT 80User-Agent: curl/%VERSION 81Accept: */* 82Content-Length: 27 83Content-Type: application/x-www-form-urlencoded 84 85datatopost=ohthatsfunyesyes 86</protocol> 87</verify> 88</testcase> 89