xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | HTTP CONNECT |
| 7 | HTTP proxy |
| 8 | proxytunnel |
| 9 | HTTP proxy Digest auth |
| 10 | </keywords> |
| 11 | </info> |
| 12 | |
| 13 | # Server-side |
| 14 | <reply> |
| 15 | |
| 16 | # this is returned first since we get no proxy-auth |
| 17 | <connect> |
| 18 | HTTP/1.1 407 Authorization Required to proxy me swsclose
|
| 19 | Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
|
| 20 |
|
| 21 | </connect> |
| 22 | |
| 23 | <datacheck> |
| 24 | HTTP/1.1 407 Authorization Required to proxy me swsclose
|
| 25 | Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
|
| 26 |
|
| 27 | </datacheck> |
| 28 | </reply> |
| 29 | |
| 30 | # Client-side |
| 31 | <client> |
| 32 | <server> |
| 33 | http |
| 34 | </server> |
| 35 | <features> |
| 36 | !SSPI |
| 37 | crypto |
| 38 | proxy |
| 39 | </features> |
| 40 | <name> |
| 41 | HTTP proxy CONNECT (no auth) with proxy returning 407 and closing |
| 42 | </name> |
| 43 | <command> |
| 44 | http://test.remote.haxx.se.%TESTNUMBER:8990/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel |
| 45 | </command> |
| 46 | </client> |
| 47 | |
| 48 | # Verify data after the test has been "shot" |
| 49 | <verify> |
| 50 | <protocol> |
| 51 | CONNECT test.remote.haxx.se.%TESTNUMBER:8990 HTTP/1.1
|
| 52 | Host: test.remote.haxx.se.%TESTNUMBER:8990
|
| 53 | User-Agent: curl/%VERSION
|
| 54 | Proxy-Connection: Keep-Alive
|
| 55 |
|
| 56 | </protocol> |
| 57 | <errorcode> |
| 58 | 56 |
| 59 | </errorcode> |
| 60 | </verify> |
| 61 | </testcase> |