test90 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # Server-side
  2. <reply>
  3. <data>
  4. HTTP/1.1 401 Authorization Required swsclose
  5. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  6. WWW-Authenticate: Basic
  7. WWW-Authenticate: Wild-and-crazy
  8. WWW-Authenticate: NTLM
  9. Content-Type: text/html; charset=iso-8859-1
  10. This is not the real page
  11. </data>
  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. This is not the real page either!
  21. </data1001>
  22. # This is supposed to be returned when the server gets the second
  23. # Authorization: NTLM line passed-in from the client
  24. <data1002>
  25. HTTP/1.1 301 Things are fine in server land swsclose
  26. Server: Microsoft-IIS/5.0
  27. Connection: close
  28. Location: /you/900010
  29. </data1002>
  30. # This is the first reply after the redirection
  31. <data10>
  32. HTTP/1.1 401 Authorization Required swsclose
  33. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  34. WWW-Authenticate: Basic
  35. WWW-Authenticate: Wild-and-crazy
  36. WWW-Authenticate: NTLM
  37. Content-Type: text/html; charset=iso-8859-1
  38. This is not the real page
  39. </data10>
  40. <data1011>
  41. HTTP/1.1 401 Now gimme that second round of crap
  42. Server: Microsoft-IIS/5.0
  43. Content-Type: text/html; charset=iso-8859-1
  44. Content-Length: 34
  45. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  46. This is not the real page either!
  47. </data1011>
  48. # This is supposed to be returned when the server gets the second
  49. # Authorization: NTLM line passed-in from the client
  50. <data1012>
  51. HTTP/1.1 200 Things are fine in server land swsclose
  52. Server: Microsoft-IIS/5.0
  53. Content-Type: text/html; charset=iso-8859-1
  54. Finally, this is the real page!
  55. </data1012>
  56. <datacheck>
  57. HTTP/1.1 401 Authorization Required swsclose
  58. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  59. WWW-Authenticate: Basic
  60. WWW-Authenticate: Wild-and-crazy
  61. WWW-Authenticate: NTLM
  62. Content-Type: text/html; charset=iso-8859-1
  63. HTTP/1.1 401 Now gimme that second request of crap
  64. Server: Microsoft-IIS/5.0
  65. Content-Type: text/html; charset=iso-8859-1
  66. Content-Length: 34
  67. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  68. HTTP/1.1 301 Things are fine in server land swsclose
  69. Server: Microsoft-IIS/5.0
  70. Connection: close
  71. Location: /you/900010
  72. HTTP/1.1 401 Authorization Required swsclose
  73. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  74. WWW-Authenticate: Basic
  75. WWW-Authenticate: Wild-and-crazy
  76. WWW-Authenticate: NTLM
  77. Content-Type: text/html; charset=iso-8859-1
  78. HTTP/1.1 401 Now gimme that second round of crap
  79. Server: Microsoft-IIS/5.0
  80. Content-Type: text/html; charset=iso-8859-1
  81. Content-Length: 34
  82. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  83. HTTP/1.1 200 Things are fine in server land swsclose
  84. Server: Microsoft-IIS/5.0
  85. Content-Type: text/html; charset=iso-8859-1
  86. Finally, this is the real page!
  87. </datacheck>
  88. </reply>
  89. # Client-side
  90. <client>
  91. # NTLM only works if SSL-support is present
  92. <features>
  93. SSL
  94. </features>
  95. <server>
  96. http
  97. </server>
  98. <name>
  99. HTTP with NTLM via --anyauth, and then follow-location with NTLM again
  100. </name>
  101. <command>
  102. http://%HOSTIP:%HOSTPORT/90 -u testuser:testpass --anyauth -L
  103. </command>
  104. </test>
  105. # Verify data after the test has been "shot"
  106. <verify>
  107. <strip>
  108. ^User-Agent:.*
  109. </strip>
  110. <protocol>
  111. GET /90 HTTP/1.1
  112. Host: 127.0.0.1:8999
  113. Pragma: no-cache
  114. Accept: */*
  115. GET /90 HTTP/1.1
  116. Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
  117. 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
  118. Host: 127.0.0.1:8999
  119. Pragma: no-cache
  120. Accept: */*
  121. GET /90 HTTP/1.1
  122. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAAAAAAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAABgAAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FB
  123. 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
  124. Host: 127.0.0.1:8999
  125. Pragma: no-cache
  126. Accept: */*
  127. GET /you/900010 HTTP/1.1
  128. Host: 127.0.0.1:8999
  129. Pragma: no-cache
  130. Accept: */*
  131. GET /you/900010 HTTP/1.1
  132. Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
  133. User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
  134. Host: 127.0.0.1:8999
  135. Pragma: no-cache
  136. Accept: */*
  137. GET /you/900010 HTTP/1.1
  138. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAAAAAAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAABgAAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FB
  139. User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
  140. Host: 127.0.0.1:8999
  141. Pragma: no-cache
  142. Accept: */*
  143. </protocol>
  144. </verify>