test91 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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: Magic-Negotiate
  16. WWW-Authenticate: NTLM
  17. WWW-Authenticate: Basic realm="daniel"
  18. Content-Type: text/html; charset=iso-8859-1
  19. Content-Length: 0
  20. Connection: close
  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: Magic-Negotiate
  45. WWW-Authenticate: NTLM
  46. WWW-Authenticate: Basic realm="daniel"
  47. Content-Type: text/html; charset=iso-8859-1
  48. Content-Length: 0
  49. Connection: close
  50. HTTP/1.1 401 Now gimme that second request of crap
  51. Server: Microsoft-IIS/5.0
  52. Content-Length: 34
  53. Content-Type: text/html; charset=iso-8859-1
  54. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  55. HTTP/1.1 200 Things are fine in server land swsclose
  56. Server: Microsoft-IIS/5.0
  57. Content-Type: text/html; charset=iso-8859-1
  58. Content-Length: 32
  59. Finally, this is the real page!
  60. </datacheck>
  61. </reply>
  62. # Client-side
  63. <client>
  64. <features>
  65. NTLM
  66. SSL
  67. !SSPI
  68. </features>
  69. <server>
  70. http
  71. </server>
  72. <name>
  73. HTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0
  74. </name>
  75. <command>
  76. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --anyauth -u mydomain\\myself:secret
  77. </command>
  78. </client>
  79. # Verify data after the test has been "shot"
  80. <verify>
  81. <protocol>
  82. GET /%TESTNUMBER HTTP/1.1
  83. Host: %HOSTIP:%HTTPPORT
  84. User-Agent: curl/%VERSION
  85. Accept: */*
  86. GET /%TESTNUMBER HTTP/1.1
  87. Host: %HOSTIP:%HTTPPORT
  88. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  89. User-Agent: curl/%VERSION
  90. Accept: */*
  91. GET /%TESTNUMBER HTTP/1.1
  92. Host: %HOSTIP:%HTTPPORT
  93. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAgACABwAAAABgAGAHgAAAALAAsAfgAAAAAAAAAAAAAAhoIBAMIyJpR5mHpg2FZha5kRaFZ9436GAxPu0C5llxexSQ5QzVkiLSfkcpVyRgCXXqR+Am15ZG9tYWlubXlzZWxmV09SS1NUQVRJT04=
  94. User-Agent: curl/%VERSION
  95. Accept: */*
  96. </protocol>
  97. </verify>
  98. </testcase>