test1101 (803B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP Basic auth 7 HTTP proxy 8 http_proxy 9 NO_PROXY 10 </keywords> 11 </info> 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 18 Content-Length: 4 19 Content-Type: text/html 20 21 boo 22 </data> 23 </reply> 24 25 # Client-side 26 <client> 27 <server> 28 http 29 </server> 30 <name> 31 NO_PROXY test, with user name in URL 32 </name> 33 34 <setenv> 35 no_proxy=%HOSTIP 36 http_proxy=http://non-existing-host.haxx.se:3128/ 37 </setenv> 38 <command> 39 http://user:secret@%HOSTIP:%HTTPPORT/gimme/%TESTNUMBER 40 </command> 41 </client> 42 43 # Verify data after the test has been "shot" 44 <verify> 45 <protocol> 46 GET /gimme/%TESTNUMBER HTTP/1.1 47 Host: %HOSTIP:%HTTPPORT 48 Authorization: Basic %b64[user:secret]b64% 49 User-Agent: curl/%VERSION 50 Accept: */* 51 52 </protocol> 53 </verify> 54 </testcase>