诸暨麻将添加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.
 
 
 
 
 
 

123 regels
3.5 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP NTLM auth
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 401 Authorization Required swsclose
  13. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  14. WWW-Authenticate: Magic-Negotiate
  15. WWW-Authenticate: NTLM
  16. WWW-Authenticate: Basic realm="daniel"
  17. Content-Type: text/html; charset=iso-8859-1
  18. Content-Length: 0
  19. Connection: close
  20. </data>
  21. # This is supposed to be returned when the server gets a first
  22. # Authorization: NTLM line passed-in from the client
  23. <data1001>
  24. HTTP/1.1 401 Now gimme that second request of crap
  25. Server: Microsoft-IIS/5.0
  26. Content-Length: 34
  27. Content-Type: text/html; charset=iso-8859-1
  28. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  29. This is not the real page either!
  30. </data1001>
  31. # This is supposed to be returned when the server gets the second
  32. # Authorization: NTLM line passed-in from the client
  33. <data1002>
  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. Content-Length: 32
  38. Finally, this is the real page!
  39. </data1002>
  40. <datacheck>
  41. HTTP/1.1 401 Authorization Required swsclose
  42. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  43. WWW-Authenticate: Magic-Negotiate
  44. WWW-Authenticate: NTLM
  45. WWW-Authenticate: Basic realm="daniel"
  46. Content-Type: text/html; charset=iso-8859-1
  47. Content-Length: 0
  48. Connection: close
  49. HTTP/1.1 401 Now gimme that second request of crap
  50. Server: Microsoft-IIS/5.0
  51. Content-Length: 34
  52. Content-Type: text/html; charset=iso-8859-1
  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. Content-Length: 32
  58. Finally, this is the real page!
  59. </datacheck>
  60. </reply>
  61. # Client-side
  62. <client>
  63. <features>
  64. NTLM
  65. </features>
  66. <server>
  67. http
  68. </server>
  69. <name>
  70. HTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0
  71. </name>
  72. <setenv>
  73. # we force our own host name, in order to make the test machine independent
  74. CURL_GETHOSTNAME=curlhost
  75. # we try to use the LD_PRELOAD hack, if not a debug build
  76. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  77. </setenv>
  78. <command>
  79. http://%HOSTIP:%HTTPPORT/91 --anyauth -u mydomain\\myself:secret
  80. </command>
  81. <precheck>
  82. chkhostname curlhost
  83. </precheck>
  84. </client>
  85. # Verify data after the test has been "shot"
  86. <verify>
  87. <strip>
  88. ^User-Agent:.*
  89. </strip>
  90. <protocol>
  91. GET /91 HTTP/1.1
  92. 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
  93. Host: %HOSTIP:%HTTPPORT
  94. Accept: */*
  95. GET /91 HTTP/1.1
  96. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  97. 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
  98. Host: %HOSTIP:%HTTPPORT
  99. Accept: */*
  100. GET /91 HTTP/1.1
  101. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAgACABwAAAABgAGAHgAAAAIAAgAfgAAAAAAAAAAAAAABoKBAMIyJpR5mHpg2FZha5kRaFZ9436GAxPu0C5llxexSQ5QzVkiLSfkcpVyRgCXXqR+Am15ZG9tYWlubXlzZWxmY3VybGhvc3Q=
  102. 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
  103. Host: %HOSTIP:%HTTPPORT
  104. Accept: */*
  105. </protocol>
  106. </verify>
  107. </testcase>