test1255 (757B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP proxy 6 http_proxy 7 NO_PROXY 8 noproxy 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 18 Content-Length: 4 19 Content-Type: text/html 20 21 foo 22 </data> 23 </reply> 24 25 # Client-side 26 <client> 27 <server> 28 http 29 </server> 30 <name> 31 http_proxy, override NO_PROXY by --noproxy and access target URL directly 32 </name> 33 <setenv> 34 http_proxy=http://%HOSTIP:%HTTPPORT 35 NO_PROXY=example.com 36 </setenv> 37 <command> 38 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --noproxy %HOSTIP 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 User-Agent: curl/%VERSION 48 Accept: */* 49 50 </protocol> 51 </verify> 52 </testcase>