xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | # See https://github.com/curl/curl/issues/4499 |
| 3 | <info> |
| 4 | <keywords> |
| 5 | HTTP |
| 6 | HTTP GET |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data> |
| 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 | <servercmd> |
| 27 | connection-monitor |
| 28 | </servercmd> |
| 29 | </reply> |
| 30 | |
| 31 | # |
| 32 | # Client-side |
| 33 | <client> |
| 34 | <server> |
| 35 | http |
| 36 | </server> |
| 37 | <name> |
| 38 | ANYAUTH connection reuse of non-authed connection |
| 39 | </name> |
| 40 | <command> |
| 41 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER --anyauth -u foo:moo |
| 42 | </command> |
| 43 | </client> |
| 44 | |
| 45 | # |
| 46 | # Verify data after the test has been "shot" |
| 47 | <verify> |
| 48 | <protocol> |
| 49 | GET /%TESTNUMBER HTTP/1.1
|
| 50 | Host: %HOSTIP:%HTTPPORT
|
| 51 | User-Agent: curl/%VERSION
|
| 52 | Accept: */*
|
| 53 |
|
| 54 | GET /%TESTNUMBER HTTP/1.1
|
| 55 | Host: %HOSTIP:%HTTPPORT
|
| 56 | User-Agent: curl/%VERSION
|
| 57 | Accept: */*
|
| 58 |
|
| 59 | [DISCONNECT] |
| 60 | </protocol> |
| 61 | </verify> |
| 62 | </testcase> |