| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
|  | 2 | <info> | 
|  | 3 | <keywords> | 
|  | 4 | HTTP | 
|  | 5 | HTTP GET | 
|  | 6 | HTTP CONNECT | 
|  | 7 | HTTP Basic auth | 
|  | 8 | proxytunnel | 
|  | 9 | </keywords> | 
|  | 10 | </info> | 
|  | 11 | # | 
|  | 12 | # Server-side | 
|  | 13 | <reply> | 
|  | 14 | <data> | 
|  | 15 | HTTP/1.1 200 OK | 
|  | 16 | Date: Tue, 09 Nov 2010 14:49:00 GMT | 
|  | 17 | Server: test-server/fake swsclose | 
|  | 18 | Content-Type: text/html | 
|  | 19 | Funny-head: yesyes | 
|  | 20 | Content-Length: 9 | 
|  | 21 |  | 
|  | 22 | contents | 
|  | 23 | </data> | 
|  | 24 | <connect> | 
|  | 25 | HTTP/1.1 200 Mighty fine indeed | 
|  | 26 |  | 
|  | 27 | </connect> | 
|  | 28 | <datacheck> | 
|  | 29 | HTTP/1.1 200 Mighty fine indeed | 
|  | 30 |  | 
|  | 31 | HTTP/1.1 200 OK | 
|  | 32 | Date: Tue, 09 Nov 2010 14:49:00 GMT | 
|  | 33 | Server: test-server/fake swsclose | 
|  | 34 | Content-Type: text/html | 
|  | 35 | Funny-head: yesyes | 
|  | 36 | Content-Length: 9 | 
|  | 37 |  | 
|  | 38 | contents | 
|  | 39 | </datacheck> | 
|  | 40 | </reply> | 
|  | 41 |  | 
|  | 42 | # | 
|  | 43 | # Client-side | 
|  | 44 | <client> | 
|  | 45 | <server> | 
|  | 46 | http | 
|  | 47 | http-proxy | 
|  | 48 | </server> | 
|  | 49 | <name> | 
|  | 50 | HTTP over proxy-tunnel with site authentication | 
|  | 51 | </name> | 
|  | 52 | <command> | 
|  | 53 | http://test.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p -x %HOSTIP:%PROXYPORT --user 'iam:my:;self' | 
|  | 54 | </command> | 
|  | 55 | <features> | 
|  | 56 | proxy | 
|  | 57 | </features> | 
|  | 58 | </client> | 
|  | 59 |  | 
|  | 60 | # | 
|  | 61 | # Verify data after the test has been "shot" | 
|  | 62 | <verify> | 
|  | 63 | <proxy> | 
|  | 64 | CONNECT test.%TESTNUMBER:%HTTPPORT HTTP/1.1 | 
|  | 65 | Host: test.%TESTNUMBER:%HTTPPORT | 
|  | 66 | User-Agent: curl/%VERSION | 
|  | 67 | Proxy-Connection: Keep-Alive | 
|  | 68 |  | 
|  | 69 | </proxy> | 
|  | 70 | <protocol> | 
|  | 71 | GET /we/want/that/page/%TESTNUMBER HTTP/1.1 | 
|  | 72 | Host: test.%TESTNUMBER:%HTTPPORT | 
|  | 73 | Authorization: Basic aWFtOm15OjtzZWxm | 
|  | 74 | User-Agent: curl/%VERSION | 
|  | 75 | Accept: */* | 
|  | 76 |  | 
|  | 77 | </protocol> | 
|  | 78 | </verify> | 
|  | 79 | </testcase> |