lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | </keywords> |
| 7 | </info> |
| 8 | # Server-side |
| 9 | <reply> |
| 10 | <data> |
| 11 | HTTP/1.1 301 This is a weirdo text message swsclose |
| 12 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 13 | Server: test-server/fake |
| 14 | Location: /online/1,1795,Welcome,00.html/280002.txt?logout=TRUE |
| 15 | Connection: close |
| 16 | |
| 17 | This server reply is for testing a simple Location: following |
| 18 | |
| 19 | </data> |
| 20 | <data2> |
| 21 | HTTP/1.1 200 Followed here fine swsclose |
| 22 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 23 | Server: test-server/fake |
| 24 | Content-Length: 52 |
| 25 | |
| 26 | If this is received, the location following worked |
| 27 | |
| 28 | </data2> |
| 29 | <datacheck> |
| 30 | HTTP/1.1 301 This is a weirdo text message swsclose |
| 31 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 32 | Server: test-server/fake |
| 33 | Location: /online/1,1795,Welcome,00.html/280002.txt?logout=TRUE |
| 34 | Connection: close |
| 35 | |
| 36 | HTTP/1.1 200 Followed here fine swsclose |
| 37 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 38 | Server: test-server/fake |
| 39 | Content-Length: 52 |
| 40 | |
| 41 | If this is received, the location following worked |
| 42 | |
| 43 | </datacheck> |
| 44 | </reply> |
| 45 | |
| 46 | # Client-side |
| 47 | <client> |
| 48 | <server> |
| 49 | http |
| 50 | </server> |
| 51 | <name> |
| 52 | HTTP Location: following with extra spaces in header |
| 53 | </name> |
| 54 | <command> |
| 55 | http://%HOSTIP:%HTTPPORT/want/28 -L |
| 56 | </command> |
| 57 | </client> |
| 58 | |
| 59 | # Verify data after the test has been "shot" |
| 60 | <verify> |
| 61 | <strip> |
| 62 | ^User-Agent:.* |
| 63 | </strip> |
| 64 | <protocol> |
| 65 | GET /want/28 HTTP/1.1
|
| 66 | Host: %HOSTIP:%HTTPPORT
|
| 67 | Accept: */*
|
| 68 |
|
| 69 | GET /online/1,1795,Welcome,00.html/280002.txt?logout=TRUE HTTP/1.1
|
| 70 | Host: %HOSTIP:%HTTPPORT
|
| 71 | Accept: */*
|
| 72 |
|
| 73 | </protocol> |
| 74 | </verify> |
| 75 | </testcase> |