诸暨麻将添加redis
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

118 linhas
2.8 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP Digest auth
  7. --anyauth
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <servercmd>
  13. auth_required
  14. </servercmd>
  15. <data>
  16. HTTP/1.1 401 Authorization Required swsclose
  17. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  18. WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
  19. WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
  20. WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
  21. Content-Type: text/html; charset=iso-8859-1
  22. Connection: close
  23. This is not the real page
  24. </data>
  25. # This is supposed to be returned when the server gets a
  26. # Authorization: Digest line passed-in from the client
  27. <data1000>
  28. HTTP/1.1 200 OK swsclose
  29. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  30. Content-Type: text/html; charset=iso-8859-1
  31. Content-Length: 23
  32. Connection: close
  33. This IS the real page!
  34. </data1000>
  35. # This is the second request
  36. <data1001>
  37. HTTP/1.1 200 OK swsclose
  38. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  39. Content-Type: text/html; charset=iso-8859-1
  40. Content-Length: 23
  41. Connection: close
  42. This IS the second real page!
  43. </data1001>
  44. <datacheck>
  45. HTTP/1.1 401 Authorization Required swsclose
  46. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  47. WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
  48. WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
  49. WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
  50. Content-Type: text/html; charset=iso-8859-1
  51. Connection: close
  52. HTTP/1.1 200 OK swsclose
  53. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  54. Content-Type: text/html; charset=iso-8859-1
  55. Content-Length: 23
  56. Connection: close
  57. This IS the real page!
  58. </datacheck>
  59. </reply>
  60. # Client-side
  61. <client>
  62. <server>
  63. http
  64. </server>
  65. <features>
  66. crypto
  67. </features>
  68. <name>
  69. HTTP GET with --anyauth with two URLs (picking Digest)
  70. </name>
  71. <command>
  72. http://%HOSTIP:%HTTPPORT/1412 -u testuser:testpass --anyauth http://%HOSTIP:%HTTPPORT/14120001
  73. </command>
  74. <file name="log/put1412">
  75. This is data we upload with PUT
  76. a second line
  77. line three
  78. four is the number of lines
  79. </file>
  80. </client>
  81. # Verify data after the test has been "shot"
  82. <verify>
  83. <strip>
  84. ^User-Agent:.*
  85. </strip>
  86. <protocol>
  87. GET /1412 HTTP/1.1
  88. Host: %HOSTIP:%HTTPPORT
  89. Accept: */*
  90. GET /1412 HTTP/1.1
  91. Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/1412", response="0390dbe89e31adca0413d11f91f30e7f"
  92. User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  93. Host: %HOSTIP:%HTTPPORT
  94. Accept: */*
  95. GET /14120001 HTTP/1.1
  96. Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/14120001", response="0085df91870374c8bf4e94415e7fbf8e"
  97. User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  98. Host: %HOSTIP:%HTTPPORT
  99. Accept: */*
  100. </protocol>
  101. </verify>
  102. </testcase>