test2102 (895B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 </keywords> 7 </info> 8 9 # 10 # Server-side 11 <reply> 12 <data crlf="yes"> 13 HTTP/1.1 200 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 17 ETag: "21025-dc7-39462498" 18 Accept-Ranges: bytes 19 Content-Length: 6 20 Connection: close 21 Content-Type: text/html 22 Funny-head: yesyes 23 24 -foo- 25 </data> 26 <dns> 27 A: %HOSTIP 28 AAAA: %HOST6IP 29 </dns> 30 </reply> 31 32 # 33 # Client-side 34 <client> 35 <server> 36 http 37 dns 38 </server> 39 <features> 40 override-dns 41 </features> 42 <name> 43 HTTP GET with host name 44 </name> 45 <setenv> 46 CURL_DNS_SERVER=127.0.0.1:%DNSPORT 47 </setenv> 48 <command> 49 http://examplehost.example:%HTTPPORT/%TESTNUMBER 50 </command> 51 </client> 52 53 # 54 # Verify data after the test has been "shot" 55 <verify> 56 <protocol crlf="yes"> 57 GET /%TESTNUMBER HTTP/1.1 58 Host: examplehost.example:%HTTPPORT 59 User-Agent: curl/%VERSION 60 Accept: */* 61 62 </protocol> 63 </verify> 64 </testcase>