test1249 (793B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP proxy 6 NO_PROXY 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 200 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Content-Length: 4 17 Content-Type: text/html 18 19 foo 20 </data> 21 </reply> 22 23 # Client-side 24 <client> 25 <features> 26 proxy 27 </features> 28 <server> 29 http 30 </server> 31 <name> 32 Non-proxied plus --proxy option and NO_PROXY env var 33 </name> 34 <setenv> 35 NO_PROXY=%HOSTIP 36 </setenv> 37 <command> 38 http://user:secret@%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy http://dummy:%NOLISTENPORT/ --max-time 5 39 </command> 40 </client> 41 42 # Verify data after the test has been "shot" 43 <verify> 44 <protocol> 45 GET /%TESTNUMBER HTTP/1.1 46 Host: %HOSTIP:%HTTPPORT 47 Authorization: Basic %b64[user:secret]b64% 48 User-Agent: curl/%VERSION 49 Accept: */* 50 51 </protocol> 52 </verify> 53 </testcase>