诸暨麻将添加redis
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

101 рядки
2.8 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <!-- no <data> in this test since we have NTLM from the start
  11. This is supposed to be returned when the server gets a first
  12. Authorization: NTLM line passed-in from the client -->
  13. <data1001>
  14. HTTP/1.1 401 Now gimme that second request of crap
  15. Server: Microsoft-IIS/5.0
  16. Content-Type: text/html; charset=iso-8859-1
  17. Content-Length: 34
  18. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  19. This is not the real page either!
  20. </data1001>
  21. # This is supposed to be returned when the server gets the second
  22. # Authorization: NTLM line passed-in from the client
  23. <data1002>
  24. HTTP/1.1 200 Things are fine in server land swsclose
  25. Server: Microsoft-IIS/5.0
  26. Content-Type: text/html; charset=iso-8859-1
  27. Content-Length: 32
  28. Finally, this is the real page!
  29. </data1002>
  30. <datacheck>
  31. HTTP/1.1 401 Now gimme that second request of crap
  32. Server: Microsoft-IIS/5.0
  33. Content-Type: text/html; charset=iso-8859-1
  34. Content-Length: 34
  35. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  36. HTTP/1.1 200 Things are fine in server land swsclose
  37. Server: Microsoft-IIS/5.0
  38. Content-Type: text/html; charset=iso-8859-1
  39. Content-Length: 32
  40. Finally, this is the real page!
  41. </datacheck>
  42. </reply>
  43. # Client-side
  44. <client>
  45. <features>
  46. NTLM
  47. </features>
  48. <server>
  49. http
  50. </server>
  51. <name>
  52. HTTP with NTLM authorization when talking HTTP/1.0
  53. </name>
  54. <setenv>
  55. # we force our own host name, in order to make the test machine independent
  56. CURL_GETHOSTNAME=curlhost
  57. # we try to use the LD_PRELOAD hack, if not a debug build
  58. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  59. </setenv>
  60. <command>
  61. http://%HOSTIP:%HTTPPORT/159 -u testuser:testpass --ntlm -0
  62. </command>
  63. <precheck>
  64. chkhostname curlhost
  65. </precheck>
  66. </client>
  67. # Verify data after the test has been "shot"
  68. <verify>
  69. <strip>
  70. ^User-Agent:.*
  71. </strip>
  72. <protocol>
  73. GET /159 HTTP/1.0
  74. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  75. 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
  76. Host: %HOSTIP:%HTTPPORT
  77. Accept: */*
  78. GET /159 HTTP/1.0
  79. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
  80. 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
  81. Host: %HOSTIP:%HTTPPORT
  82. Accept: */*
  83. </protocol>
  84. </verify>
  85. </testcase>