xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTPS |
| 5 | HTTP GET |
| 6 | HTTP CONNECT |
| 7 | HTTP proxy |
| 8 | FAILURE |
| 9 | </keywords> |
| 10 | </info> |
| 11 | # |
| 12 | # Server-side |
| 13 | <reply> |
| 14 | <connect nocheck="yes"> |
| 15 | HTTP/1.1 407 Needs proxy authentication |
| 16 | Server: test-server/fake swsclose yesyes |
| 17 | Proxy-Authenticate: Basic "oh please" |
| 18 | Connection: close |
| 19 | |
| 20 | bing |
| 21 | </connect> |
| 22 | </reply> |
| 23 | |
| 24 | # |
| 25 | # Client-side |
| 26 | <client> |
| 27 | <server> |
| 28 | http |
| 29 | </server> |
| 30 | <features> |
| 31 | SSL |
| 32 | proxy |
| 33 | </features> |
| 34 | <name> |
| 35 | HTTPS GET with failed proxy auth (CONNECT 1.0) |
| 36 | </name> |
| 37 | <command> |
| 38 | https://test.anything.really.com:%TESTNUMBER --proxy1.0 %HOSTIP:%HTTPPORT |
| 39 | </command> |
| 40 | </client> |
| 41 | |
| 42 | # |
| 43 | # Verify data after the test has been "shot" |
| 44 | <verify> |
| 45 | <errorcode> |
| 46 | 56 |
| 47 | </errorcode> |
| 48 | <protocol> |
| 49 | CONNECT test.anything.really.com:%TESTNUMBER HTTP/1.0
|
| 50 | Host: test.anything.really.com:%TESTNUMBER
|
| 51 | User-Agent: curl/%VERSION
|
| 52 | Proxy-Connection: Keep-Alive
|
| 53 |
|
| 54 | </protocol> |
| 55 | </verify> |
| 56 | </testcase> |