1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6CURLOPT_CONNECT_TO 7--resolve 8</keywords> 9</info> 10 11# 12# Server-side 13<reply> 14<data nocheck="yes"> 15HTTP/1.1 200 OK 16Date: Tue, 09 Nov 2010 14:49:00 GMT 17Content-Length: 3 18Content-Type: text/plain 19 20OK 21</data> 22</reply> 23 24# 25# Client-side 26<client> 27<server> 28http 29</server> 30<name> 31Connect to specific host: Do not mix connections with and without a "connect to host" 32</name> 33 34<command> 35http://www.example.com:%HTTPPORT/%TESTNUMBER --resolve www.example.com:%HTTPPORT:%HOSTIP -w "%{num_connects}\n" --next --resolve -www.example.com:%HTTPPORT --connect-to ::%HOSTIP:%HTTPPORT http://www.example.com:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n" 36</command> 37</client> 38 39# 40# Verify data after the test has been "shot" 41<verify> 42<protocol> 43GET /%TESTNUMBER HTTP/1.1 44Host: www.example.com:%HTTPPORT 45User-Agent: curl/%VERSION 46Accept: */* 47 48GET /%TESTNUMBER HTTP/1.1 49Host: www.example.com:%HTTPPORT 50User-Agent: curl/%VERSION 51Accept: */* 52 53</protocol> 54 55<stdout> 56HTTP/1.1 200 OK 57Date: Tue, 09 Nov 2010 14:49:00 GMT 58Content-Length: 3 59Content-Type: text/plain 60 61OK 621 63OK 641 65</stdout> 66 67</verify> 68</testcase> 69