诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

148 regels
3.1 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP Basic auth
  7. HTTP NTLM auth
  8. pipelining
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <!-- Basic auth -->
  14. <data100>
  15. HTTP/1.1 401 Need Basic or NTLM auth
  16. Server: Microsoft-IIS/5.0
  17. Content-Type: text/html; charset=iso-8859-1
  18. Content-Length: 29
  19. WWW-Authenticate: NTLM
  20. WWW-Authenticate: Basic realm="testrealm"
  21. This is a bad password page!
  22. </data100>
  23. <!-- NTML auth -->
  24. <data200>
  25. HTTP/1.1 401 Need Basic or NTLM auth (2)
  26. Server: Microsoft-IIS/5.0
  27. Content-Type: text/html; charset=iso-8859-1
  28. Content-Length: 27
  29. WWW-Authenticate: NTLM
  30. WWW-Authenticate: Basic realm="testrealm"
  31. This is not the real page!
  32. </data200>
  33. <data1201>
  34. HTTP/1.1 401 NTLM intermediate (2)
  35. Server: Microsoft-IIS/5.0
  36. Content-Type: text/html; charset=iso-8859-1
  37. Content-Length: 33
  38. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  39. This is still not the real page!
  40. </data1201>
  41. <data1202>
  42. HTTP/1.1 200 Things are fine in server land
  43. Server: Microsoft-IIS/5.0
  44. Content-Type: text/html; charset=iso-8859-1
  45. Content-Length: 32
  46. Finally, this is the real page!
  47. </data1202>
  48. <datacheck>
  49. HTTP/1.1 401 Need Basic or NTLM auth
  50. Server: Microsoft-IIS/5.0
  51. Content-Type: text/html; charset=iso-8859-1
  52. Content-Length: 29
  53. WWW-Authenticate: NTLM
  54. WWW-Authenticate: Basic realm="testrealm"
  55. This is a bad password page!
  56. HTTP/1.1 401 Need Basic or NTLM auth
  57. Server: Microsoft-IIS/5.0
  58. Content-Type: text/html; charset=iso-8859-1
  59. Content-Length: 29
  60. WWW-Authenticate: NTLM
  61. WWW-Authenticate: Basic realm="testrealm"
  62. This is a bad password page!
  63. HTTP/1.1 401 NTLM intermediate (2)
  64. Server: Microsoft-IIS/5.0
  65. Content-Type: text/html; charset=iso-8859-1
  66. Content-Length: 33
  67. WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
  68. HTTP/1.1 200 Things are fine in server land
  69. Server: Microsoft-IIS/5.0
  70. Content-Type: text/html; charset=iso-8859-1
  71. Content-Length: 32
  72. Finally, this is the real page!
  73. </datacheck>
  74. </reply>
  75. # Client-side
  76. <client>
  77. <features>
  78. NTLM
  79. </features>
  80. <server>
  81. http
  82. </server>
  83. <tool>
  84. lib2033
  85. </tool>
  86. <name>
  87. NTLM connection mapping, pipelining enabled
  88. </name>
  89. <setenv>
  90. # we force our own host name, in order to make the test machine independent
  91. CURL_GETHOSTNAME=curlhost
  92. # we try to use the LD_PRELOAD hack, if not a debug build
  93. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  94. </setenv>
  95. <command>
  96. http://%HOSTIP:%HTTPPORT/2032
  97. </command>
  98. <precheck>
  99. chkhostname curlhost
  100. </precheck>
  101. </client>
  102. # Verify data after the test has been "shot"
  103. <verify>
  104. <strip>
  105. ^User-Agent:.*
  106. </strip>
  107. <protocol>
  108. GET /20320100 HTTP/1.1
  109. Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
  110. Host: 127.0.0.1:8990
  111. Accept: */*
  112. GET /20320100 HTTP/1.1
  113. Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
  114. Host: 127.0.0.1:8990
  115. Accept: */*
  116. GET /20320200 HTTP/1.1
  117. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  118. Host: 127.0.0.1:8990
  119. Accept: */*
  120. GET /20320200 HTTP/1.1
  121. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=
  122. Host: 127.0.0.1:8990
  123. Accept: */*
  124. </protocol>
  125. </verify>
  126. </testcase>