xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTPS |
| 5 | HTTP GET |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | HTTP/1.1 200 OK |
| 14 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 15 | Server: test-server/fake |
| 16 | Content-Length: 7 |
| 17 | |
| 18 | MooMoo |
| 19 | </data> |
| 20 | </reply> |
| 21 | |
| 22 | # |
| 23 | # Client-side |
| 24 | <client> |
| 25 | <features> |
| 26 | SSL |
| 27 | </features> |
| 28 | <server> |
| 29 | https |
| 30 | </server> |
| 31 | <name> |
| 32 | HTTPS GET with very long request header |
| 33 | </name> |
| 34 | # 14 characters repeated 3500 times makes 49000 bytes |
| 35 | <file name="log/file%TESTNUMBER"> |
| 36 | Long: %repeat[3500 x header content]% |
| 37 | </file> |
| 38 | <command> |
| 39 | -k https://%HOSTIP:%HTTPSPORT/%TESTNUMBER -H @log/file%TESTNUMBER |
| 40 | </command> |
| 41 | </client> |
| 42 | |
| 43 | # |
| 44 | # Verify data after the test has been "shot" |
| 45 | <verify> |
| 46 | <protocol> |
| 47 | GET /%TESTNUMBER HTTP/1.1
|
| 48 | Host: %HOSTIP:%HTTPSPORT
|
| 49 | User-Agent: curl/%VERSION
|
| 50 | Accept: */*
|
| 51 | Long: %repeat[3500 x header content]%
|
| 52 |
|
| 53 | </protocol> |
| 54 | </verify> |
| 55 | </testcase> |