test89 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP NTLM auth
  7. followlocation
  8. NTLM
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <!-- no <data> in this test since we have NTLM from the start
  14. This is supposed to be returned when the server gets a first
  15. Authorization: NTLM line passed-in from the client -->
  16. <data1001>
  17. HTTP/1.1 401 Now gimme that second request of crap
  18. Server: Microsoft-IIS/5.0
  19. Content-Type: text/html; charset=iso-8859-1
  20. Content-Length: 34
  21. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  22. This is not the real page either!
  23. </data1001>
  24. # This is supposed to be returned when the server gets the second
  25. # Authorization: NTLM line passed-in from the client
  26. <data1002>
  27. HTTP/1.1 301 Things are fine in server land swsclose
  28. Server: Microsoft-IIS/5.0
  29. Connection: close
  30. Location: /you/%TESTNUMBER0010
  31. </data1002>
  32. # This is the first reply after the redirection
  33. <data1011>
  34. HTTP/1.1 401 Now gimme that second round of crap
  35. Server: Microsoft-IIS/5.0
  36. Content-Type: text/html; charset=iso-8859-1
  37. Content-Length: 34
  38. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  39. This is not the real page either!
  40. </data1011>
  41. # This is supposed to be returned when the server gets the second
  42. # Authorization: NTLM line passed-in from the client
  43. <data1012>
  44. HTTP/1.1 200 Things are fine in server land swsclose
  45. Server: Microsoft-IIS/5.0
  46. Content-Type: text/html; charset=iso-8859-1
  47. Content-Length: 32
  48. Finally, this is the real page!
  49. </data1012>
  50. <datacheck>
  51. HTTP/1.1 401 Now gimme that second request of crap
  52. Server: Microsoft-IIS/5.0
  53. Content-Type: text/html; charset=iso-8859-1
  54. Content-Length: 34
  55. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  56. HTTP/1.1 301 Things are fine in server land swsclose
  57. Server: Microsoft-IIS/5.0
  58. Connection: close
  59. Location: /you/%TESTNUMBER0010
  60. HTTP/1.1 401 Now gimme that second round of crap
  61. Server: Microsoft-IIS/5.0
  62. Content-Type: text/html; charset=iso-8859-1
  63. Content-Length: 34
  64. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  65. HTTP/1.1 200 Things are fine in server land swsclose
  66. Server: Microsoft-IIS/5.0
  67. Content-Type: text/html; charset=iso-8859-1
  68. Content-Length: 32
  69. Finally, this is the real page!
  70. </datacheck>
  71. </reply>
  72. # Client-side
  73. <client>
  74. <features>
  75. NTLM
  76. SSL
  77. !SSPI
  78. </features>
  79. <server>
  80. http
  81. </server>
  82. <name>
  83. HTTP with NTLM and follow-location
  84. </name>
  85. <command>
  86. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --ntlm -L
  87. </command>
  88. </client>
  89. # Verify data after the test has been "shot"
  90. <verify>
  91. <protocol>
  92. GET /%TESTNUMBER HTTP/1.1
  93. Host: %HOSTIP:%HTTPPORT
  94. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  95. User-Agent: curl/%VERSION
  96. Accept: */*
  97. GET /%TESTNUMBER HTTP/1.1
  98. Host: %HOSTIP:%HTTPPORT
  99. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
  100. User-Agent: curl/%VERSION
  101. Accept: */*
  102. GET /you/%TESTNUMBER0010 HTTP/1.1
  103. Host: %HOSTIP:%HTTPPORT
  104. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  105. User-Agent: curl/%VERSION
  106. Accept: */*
  107. GET /you/%TESTNUMBER0010 HTTP/1.1
  108. Host: %HOSTIP:%HTTPPORT
  109. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
  110. User-Agent: curl/%VERSION
  111. Accept: */*
  112. </protocol>
  113. </verify>
  114. </testcase>