test159 2.0 KB

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