test69 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP NTLM auth
  7. NTLM
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 401 Authorization Required swsclose
  14. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  15. WWW-Authenticate: Basic
  16. WWW-Authenticate: Wild-and-crazy
  17. WWW-Authenticate: NTLM
  18. Content-Type: text/html; charset=iso-8859-1
  19. Content-Length: 26
  20. This is not the real page
  21. </data>
  22. # This is supposed to be returned when the server gets a first
  23. # Authorization: NTLM line passed-in from the client
  24. <data1001>
  25. HTTP/1.1 401 Now gimme that second request of crap
  26. Server: Microsoft-IIS/5.0
  27. Content-Length: 34
  28. Content-Type: text/html; charset=iso-8859-1
  29. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  30. This is not the real page either!
  31. </data1001>
  32. # This is supposed to be returned when the server gets the second
  33. # Authorization: NTLM line passed-in from the client
  34. <data1002>
  35. HTTP/1.1 200 Things are fine in server land swsclose
  36. Server: Microsoft-IIS/5.0
  37. Content-Type: text/html; charset=iso-8859-1
  38. Content-Length: 32
  39. Finally, this is the real page!
  40. </data1002>
  41. <datacheck>
  42. HTTP/1.1 401 Authorization Required swsclose
  43. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  44. WWW-Authenticate: Basic
  45. WWW-Authenticate: Wild-and-crazy
  46. WWW-Authenticate: NTLM
  47. Content-Type: text/html; charset=iso-8859-1
  48. Content-Length: 26
  49. HTTP/1.1 401 Now gimme that second request of crap
  50. Server: Microsoft-IIS/5.0
  51. Content-Length: 34
  52. Content-Type: text/html; charset=iso-8859-1
  53. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  54. HTTP/1.1 200 Things are fine in server land swsclose
  55. Server: Microsoft-IIS/5.0
  56. Content-Type: text/html; charset=iso-8859-1
  57. Content-Length: 32
  58. Finally, this is the real page!
  59. </datacheck>
  60. </reply>
  61. # Client-side
  62. <client>
  63. <features>
  64. NTLM
  65. SSL
  66. !SSPI
  67. </features>
  68. <server>
  69. http
  70. </server>
  71. <name>
  72. HTTP with NTLM, Basic or Wild-and-crazy authorization
  73. </name>
  74. <command>
  75. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth
  76. </command>
  77. </client>
  78. # Verify data after the test has been "shot"
  79. <verify>
  80. <protocol>
  81. GET /%TESTNUMBER HTTP/1.1
  82. Host: %HOSTIP:%HTTPPORT
  83. User-Agent: curl/%VERSION
  84. Accept: */*
  85. GET /%TESTNUMBER HTTP/1.1
  86. Host: %HOSTIP:%HTTPPORT
  87. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  88. User-Agent: curl/%VERSION
  89. Accept: */*
  90. GET /%TESTNUMBER HTTP/1.1
  91. Host: %HOSTIP:%HTTPPORT
  92. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
  93. User-Agent: curl/%VERSION
  94. Accept: */*
  95. </protocol>
  96. </verify>
  97. </testcase>