test471 (1140B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 globbing 7 {} list 8 </keywords> 9 </info> 10 # 11 # Server-side 12 <reply> 13 <data nocheck="yes"> 14 HTTP/1.1 200 OK 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 16 Server: test-server/fake 17 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 18 ETag: "21025-dc7-39462498" 19 Accept-Ranges: bytes 20 Content-Length: 6 21 Content-Type: text/html 22 Funny-head: yesyes 23 24 -foo- 25 </data> 26 <data1> 27 HTTP/2 200 OK 28 Content-Type: text/html 29 Funny-head: swsclose 30 Connection: close 31 32 crap data 33 </data1> 34 </reply> 35 36 # 37 # Client-side 38 <client> 39 <features> 40 http/2 41 http 42 </features> 43 <server> 44 http 45 </server> 46 <name> 47 Reject HTTP/1.1 to HTTP/2 switch on the same connection 48 </name> 49 <command option="no-output"> 50 "http://%HOSTIP:%HTTPPORT/{%TESTNUMBER,%TESTNUMBER0001}" -o "%LOGDIR/dumpit#1.dump" 51 </command> 52 </client> 53 54 # 55 # Verify data after the test has been "shot" 56 <verify> 57 <protocol> 58 GET /%TESTNUMBER HTTP/1.1 59 Host: %HOSTIP:%HTTPPORT 60 User-Agent: curl/%VERSION 61 Accept: */* 62 63 GET /%TESTNUMBER0001 HTTP/1.1 64 Host: %HOSTIP:%HTTPPORT 65 User-Agent: curl/%VERSION 66 Accept: */* 67 68 </protocol> 69 # curl: (1) Version mismatch (from HTTP/1 to HTTP/2) 70 <errorcode> 71 8 72 </errorcode> 73 </verify> 74 </testcase>