lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | HTTP proxy |
| 7 | HTTP proxy Basic auth |
| 8 | HTTP proxy NTLM auth |
| 9 | </keywords> |
| 10 | </info> |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | |
| 14 | <data> |
| 15 | HTTP/1.1 407 We only deal with NTLM my friend
|
| 16 | Server: Microsoft-IIS/5.0
|
| 17 | Content-Type: text/html; charset=iso-8859-1
|
| 18 | Content-Length: 34
|
| 19 | Proxy-Authenticate: NTLM |
| 20 |
|
| 21 | This is not the real page either! |
| 22 | </data> |
| 23 | |
| 24 | </reply> |
| 25 | |
| 26 | # Client-side |
| 27 | <client> |
| 28 | <features> |
| 29 | </features> |
| 30 | <server> |
| 31 | http |
| 32 | </server> |
| 33 | <name> |
| 34 | HTTP with proxy requiring NTLM, but we send Basic |
| 35 | </name> |
| 36 | <command> |
| 37 | http://%HOSTIP:%HTTPPORT/82 --proxy-user testuser:testpass -x http://%HOSTIP:%HTTPPORT |
| 38 | </command> |
| 39 | </client> |
| 40 | |
| 41 | # Verify data after the test has been "shot" |
| 42 | <verify> |
| 43 | <strip> |
| 44 | ^User-Agent:.* |
| 45 | </strip> |
| 46 | <protocol> |
| 47 | GET http://%HOSTIP:%HTTPPORT/82 HTTP/1.1
|
| 48 | Host: %HOSTIP:%HTTPPORT
|
| 49 | Proxy-Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
|
| 50 | User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
|
| 51 | Accept: */*
|
| 52 | Proxy-Connection: Keep-Alive
|
| 53 |
|
| 54 | </protocol> |
| 55 | </verify> |
| 56 | </testcase> |