test2500 (1239B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP/3 7 </keywords> 8 </info> 9 10 # 11 # Server-side 12 <reply> 13 <data nocheck="yes" crlf="yes"> 14 HTTP/1.1 200 OK 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 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 </reply> 27 28 # 29 # Client-side 30 <client> 31 <features> 32 http/3 33 nghttpx-h3 34 </features> 35 <server> 36 http/3 37 </server> 38 <name> 39 HTTP/3 GET: 40 </name> 41 <command> 42 --cacert %CERTDIR/certs/test-ca.crt --http3 --resolve localhost:%HTTP3PORT:%HOSTIP https://localhost:%HTTP3PORT/%TESTNUMBER 43 </command> 44 </client> 45 46 # 47 # Verify data after the test has been "shot" 48 <verify> 49 <strip> 50 ^X-Forwarded-Proto:.* 51 ^Via:.* 52 </strip> 53 <protocol crlf="yes"> 54 GET https://localhost:%HTTP3PORT/%TESTNUMBER HTTP/1.1 55 Host: localhost:%HTTP3PORT 56 User-Agent: curl/%VERSION 57 Accept: */* 58 59 </protocol> 60 <stdout crlf="yes"> 61 HTTP/3 200 62 date: Tue, 09 Nov 2010 14:49:00 GMT 63 last-modified: Tue, 13 Jun 2000 12:10:00 GMT 64 etag: "21025-dc7-39462498" 65 accept-ranges: bytes 66 content-length: 6 67 content-type: text/html 68 funny-head: yesyes 69 via: 1.1 nghttpx 70 71 -foo- 72 </stdout> 73 <stripfile> 74 s/^server: nghttpx.*\r?\n// 75 </stripfile> 76 </verify> 77 </testcase>