test1256 (850B)
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 target URL through proxy 32 </name> 33 <setenv> 34 http_proxy=http://%HOSTIP:%HTTPPORT 35 NO_PROXY=example.com 36 </setenv> 37 <command> 38 http://somewhere.example.com/%TESTNUMBER --noproxy %HOSTIP 39 </command> 40 <features> 41 proxy 42 </features> 43 </client> 44 45 # Verify data after the test has been "shot" 46 <verify> 47 <protocol> 48 GET http://somewhere.example.com/%TESTNUMBER HTTP/1.1 49 Host: somewhere.example.com 50 User-Agent: curl/%VERSION 51 Accept: */* 52 Proxy-Connection: Keep-Alive 53 54 </protocol> 55 </verify> 56 </testcase>