test85 (976B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP Basic auth 7 HTTP proxy 8 HTTP proxy Basic auth 9 </keywords> 10 </info> 11 12 # 13 # Server-side 14 <reply> 15 <data> 16 HTTP/1.1 200 OK 17 Date: Tue, 09 Nov 2010 14:49:00 GMT 18 Server: test-server/fake swsclose 19 Content-Type: text/html 20 Funny-head: yesyes 21 Content-Length: 9 22 23 contents 24 </data> 25 </reply> 26 27 # 28 # Client-side 29 <client> 30 <server> 31 http 32 </server> 33 <name> 34 HTTP over proxy with site and proxy authentication 35 </name> 36 <command> 37 http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this 38 </command> 39 <features> 40 proxy 41 </features> 42 </client> 43 44 # 45 # Verify data after the test has been "shot" 46 <verify> 47 <protocol> 48 GET http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER HTTP/1.1 49 Host: %HOSTIP:%HTTPPORT 50 Proxy-Authorization: Basic %b64[testing:this]b64% 51 Authorization: Basic %b64[iam:myself]b64% 52 User-Agent: curl/%VERSION 53 Accept: */* 54 Proxy-Connection: Keep-Alive 55 56 </protocol> 57 </verify> 58 </testcase>