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 NTLM auth |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | |
| 13 | <!-- no <data> in this test since we have NTLM from the start |
| 14 | |
| 15 | This is supposed to be returned when the server gets a first |
| 16 | Authorization: NTLM line passed-in from the client --> |
| 17 | |
| 18 | <data1001> |
| 19 | HTTP/1.1 401 Now gimme that second request of crap
|
| 20 | Server: Microsoft-IIS/5.0
|
| 21 | Content-Type: text/html; charset=iso-8859-1
|
| 22 | Content-Length: 34
|
| 23 | WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 24 | Connection: close
|
| 25 |
|
| 26 | This is not the real page either! |
| 27 | </data1001> |
| 28 | |
| 29 | <datacheck> |
| 30 | HTTP/1.1 401 Now gimme that second request of crap
|
| 31 | Server: Microsoft-IIS/5.0
|
| 32 | Content-Type: text/html; charset=iso-8859-1
|
| 33 | Content-Length: 34
|
| 34 | WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 35 | Connection: close
|
| 36 |
|
| 37 | This is not the real page either! |
| 38 | </datacheck> |
| 39 | |
| 40 | </reply> |
| 41 | |
| 42 | # Client-side |
| 43 | <client> |
| 44 | <features> |
| 45 | NTLM |
| 46 | SSL |
| 47 | !SSPI |
| 48 | debug |
| 49 | </features> |
| 50 | <server> |
| 51 | http |
| 52 | </server> |
| 53 | <name> |
| 54 | HTTP with NTLM authorization when talking HTTP/1.0 (known to fail) |
| 55 | </name> |
| 56 | <setenv> |
| 57 | # we force our own host name, in order to make the test machine independent |
| 58 | CURL_GETHOSTNAME=curlhost |
| 59 | # we try to use the LD_PRELOAD hack, if not a debug build |
| 60 | LD_PRELOAD=%PWD/libtest/.libs/libhostname.so |
| 61 | </setenv> |
| 62 | <command> |
| 63 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --ntlm -0 |
| 64 | </command> |
| 65 | <precheck> |
| 66 | chkhostname curlhost |
| 67 | </precheck> |
| 68 | </client> |
| 69 | |
| 70 | # Verify data after the test has been "shot" |
| 71 | <verify> |
| 72 | <protocol> |
| 73 | GET /%TESTNUMBER HTTP/1.0
|
| 74 | Host: %HOSTIP:%HTTPPORT
|
| 75 | Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 76 | User-Agent: curl/%VERSION
|
| 77 | Accept: */*
|
| 78 |
|
| 79 | </protocol> |
| 80 | </verify> |
| 81 | </testcase> |