1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP proxy 6NO_PROXY 7</keywords> 8</info> 9 10# Server-side 11<reply> 12<data> 13HTTP/1.1 200 OK 14Date: Tue, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Content-Length: 4 17Content-Type: text/html 18 19foo 20</data> 21</reply> 22 23# Client-side 24<client> 25<features> 26proxy 27</features> 28<server> 29http 30</server> 31<name> 32Access a non-proxied host with using the combination of --proxy option and NO_PROXY env var 33</name> 34<setenv> 35NO_PROXY=%HOSTIP 36</setenv> 37<command> 38http://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> 45GET /%TESTNUMBER HTTP/1.1 46Host: %HOSTIP:%HTTPPORT 47Authorization: Basic dXNlcjpzZWNyZXQ= 48User-Agent: curl/%VERSION 49Accept: */* 50 51</protocol> 52</verify> 53</testcase> 54