1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP CONNECT 7HTTP proxy 8proxytunnel 9</keywords> 10</info> 11 12# 13# Server-side 14<reply> 15<connect> 16HTTP/1.1 200 Mighty fine indeed 17Server: test tunnel 2000 18 19</connect> 20 21<data nocheck="yes"> 22HTTP/1.1 200 OK 23Date: Thu, 09 Nov 2010 14:49:00 GMT 24Server: test-server/fake 25Content-Type: text/html 26Funny-head: yesyes 27Content-Length: 9 28Connection: keep-alive 29 30contents 31</data> 32</reply> 33 34# 35# Client-side 36<client> 37<server> 38http 39http-proxy 40</server> 41<name> 42Suppress proxy CONNECT response headers 43</name> 44<command> 45--proxytunnel --suppress-connect-headers --dump-header - --include --write-out "\nCONNECT CODE: %{http_connect}\nRECEIVED HEADER BYTE TOTAL: %{size_header}\n" --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.1288:%HTTPPORT/we/want/that/page/1288 46</command> 47<features> 48proxy 49</features> 50</client> 51 52# 53# Verify data after the test has been "shot" 54<verify> 55<strip> 56^User-Agent:.* 57</strip> 58<proxy> 59CONNECT %HOSTIP.1288:%HTTPPORT HTTP/1.1 60Host: %HOSTIP.1288:%HTTPPORT 61Proxy-Connection: Keep-Alive 62 63</proxy> 64<protocol> 65GET /we/want/that/page/1288 HTTP/1.1 66Host: %HOSTIP.1288:%HTTPPORT 67Accept: */* 68 69</protocol> 70 71# This test is structured to test all the expectations of 72# --suppress-connect-headers, which are: 73# Must suppress in --include and --dump-header 74# Must not suppress in --verbose and --trace 75# Must not suppress in statistics (eg received header byte total) 76<stdout> 77HTTP/1.1 200 OK 78HTTP/1.1 200 OK 79Date: Thu, 09 Nov 2010 14:49:00 GMT 80Date: Thu, 09 Nov 2010 14:49:00 GMT 81Server: test-server/fake 82Server: test-server/fake 83Content-Type: text/html 84Content-Type: text/html 85Funny-head: yesyes 86Funny-head: yesyes 87Content-Length: 9 88Content-Length: 9 89Connection: keep-alive 90Connection: keep-alive 91 92 93contents 94 95CONNECT CODE: 200 96RECEIVED HEADER BYTE TOTAL: 231 97</stdout> 98</verify> 99</testcase> 100