test744 (1425B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 --netrc-file 6 netrc 7 </keywords> 8 </info> 9 10 # 11 # Server-side 12 <reply> 13 <data> 14 HTTP/1.1 200 OK 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 16 Server: test-server/fake swsclose 17 Content-Type: text/html 18 Funny-head: yesyes 19 Content-Length: 9 20 21 contents 22 </data> 23 <connect> 24 HTTP/1.1 200 Mighty fine indeed 25 26 </connect> 27 <datacheck> 28 HTTP/1.1 200 Mighty fine indeed 29 30 HTTP/1.1 200 OK 31 Date: Tue, 09 Nov 2010 14:49:00 GMT 32 Server: test-server/fake swsclose 33 Content-Type: text/html 34 Funny-head: yesyes 35 Content-Length: 9 36 37 contents 38 </datacheck> 39 </reply> 40 41 # 42 # Client-side 43 <client> 44 <server> 45 http 46 http-proxy 47 </server> 48 <name> 49 --netrc-file with a 127 byte line 50 </name> 51 <file name="%LOGDIR/netrc%TESTNUMBER" nonewline="yes"> 52 machine foo.host login foo password baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar 53 </file> 54 <command> 55 http://foo.host:%HTTPPORT/%TESTNUMBER -p --proxy1.0 %HOSTIP:%PROXYPORT -A "" --netrc-file %LOGDIR/netrc%TESTNUMBER 56 </command> 57 <features> 58 proxy 59 </features> 60 </client> 61 62 # 63 # Verify data after the test has been "shot" 64 <verify> 65 <proxy> 66 CONNECT foo.host:%HTTPPORT HTTP/1.0 67 Host: foo.host:%HTTPPORT 68 Proxy-Connection: Keep-Alive 69 70 </proxy> 71 <protocol> 72 GET /%TESTNUMBER HTTP/1.1 73 Host: foo.host:%HTTPPORT 74 Authorization: Basic %b64[foo:baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar]b64% 75 Accept: */* 76 77 </protocol> 78 </verify> 79 </testcase>