test89 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. # Server-side
  2. <reply>
  3. # no <data> in this test since we have NTLM from the start
  4. # This is supposed to be returned when the server gets a first
  5. # Authorization: NTLM line passed-in from the client
  6. <data1001>
  7. HTTP/1.1 401 Now gimme that second request of crap
  8. Server: Microsoft-IIS/5.0
  9. Content-Type: text/html; charset=iso-8859-1
  10. Content-Length: 34
  11. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  12. This is not the real page either!
  13. </data1001>
  14. # This is supposed to be returned when the server gets the second
  15. # Authorization: NTLM line passed-in from the client
  16. <data1002>
  17. HTTP/1.1 301 Things are fine in server land swsclose
  18. Server: Microsoft-IIS/5.0
  19. Connection: close
  20. Location: /you/890010
  21. </data1002>
  22. # This is the first reply after the redirection
  23. <data1011>
  24. HTTP/1.1 401 Now gimme that second round 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. This is not the real page either!
  30. </data1011>
  31. # This is supposed to be returned when the server gets the second
  32. # Authorization: NTLM line passed-in from the client
  33. <data1012>
  34. HTTP/1.1 200 Things are fine in server land swsclose
  35. Server: Microsoft-IIS/5.0
  36. Content-Type: text/html; charset=iso-8859-1
  37. Finally, this is the real page!
  38. </data1012>
  39. <datacheck>
  40. HTTP/1.1 401 Now gimme that second request of crap
  41. Server: Microsoft-IIS/5.0
  42. Content-Type: text/html; charset=iso-8859-1
  43. Content-Length: 34
  44. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  45. HTTP/1.1 301 Things are fine in server land swsclose
  46. Server: Microsoft-IIS/5.0
  47. Connection: close
  48. Location: /you/890010
  49. HTTP/1.1 401 Now gimme that second round of crap
  50. Server: Microsoft-IIS/5.0
  51. Content-Type: text/html; charset=iso-8859-1
  52. Content-Length: 34
  53. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  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. Finally, this is the real page!
  58. </datacheck>
  59. </reply>
  60. # Client-side
  61. <client>
  62. # NTLM only works if SSL-support is present
  63. <features>
  64. SSL
  65. </features>
  66. <server>
  67. http
  68. </server>
  69. <name>
  70. HTTP with NTLM and follow-location
  71. </name>
  72. <command>
  73. http://%HOSTIP:%HOSTPORT/89 -u testuser:testpass --ntlm -L
  74. </command>
  75. </test>
  76. # Verify data after the test has been "shot"
  77. <verify>
  78. <strip>
  79. ^User-Agent:.*
  80. </strip>
  81. <protocol>
  82. GET /89 HTTP/1.1
  83. Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
  84. 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
  85. Host: 127.0.0.1:8999
  86. Pragma: no-cache
  87. Accept: */*
  88. GET /89 HTTP/1.1
  89. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAAAAAAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAABgAAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FB
  90. 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
  91. Host: 127.0.0.1:8999
  92. Pragma: no-cache
  93. Accept: */*
  94. GET /you/890010 HTTP/1.1
  95. Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
  96. 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
  97. Host: 127.0.0.1:8999
  98. Pragma: no-cache
  99. Accept: */*
  100. GET /you/890010 HTTP/1.1
  101. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAAAAAAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAABgAAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FB
  102. 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
  103. Host: 127.0.0.1:8999
  104. Pragma: no-cache
  105. Accept: */*
  106. </protocol>
  107. </verify>