诸暨麻将添加redis
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

80 wiersze
1.8 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. HTTP proxy Basic auth
  8. HTTP Digest auth
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 401 Authorization Required swsclose
  15. WWW-Authenticate: Digest realm="weirdorealm", nonce="12345"
  16. </data>
  17. <data1000>
  18. HTTP/1.1 200 OK swsclose
  19. Server: no
  20. Content-Length: 15
  21. Nice auth sir!
  22. </data1000>
  23. <datacheck>
  24. HTTP/1.1 401 Authorization Required swsclose
  25. WWW-Authenticate: Digest realm="weirdorealm", nonce="12345"
  26. HTTP/1.1 200 OK swsclose
  27. Server: no
  28. Content-Length: 15
  29. Nice auth sir!
  30. </datacheck>
  31. </reply>
  32. # Client-side
  33. <client>
  34. <server>
  35. http
  36. </server>
  37. <features>
  38. crypto
  39. </features>
  40. <name>
  41. HTTP with proxy-requiring-Basic to site-requiring-Digest
  42. </name>
  43. <command>
  44. http://data.from.server.requiring.digest.hohoho.com/167 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --digest --user digest:alot
  45. </command>
  46. </client>
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <strip>
  50. ^User-Agent: curl/.*
  51. </strip>
  52. <protocol>
  53. GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1
  54. Proxy-Authorization: Basic Zm9vOmJhcg==
  55. User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3
  56. Host: data.from.server.requiring.digest.hohoho.com
  57. Accept: */*
  58. Proxy-Connection: Keep-Alive
  59. GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1
  60. Proxy-Authorization: Basic Zm9vOmJhcg==
  61. Authorization: Digest username="digest", realm="weirdorealm", nonce="12345", uri="/167", response="13c7c02a252cbe1c46d8669898a3be26"
  62. User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3
  63. Host: data.from.server.requiring.digest.hohoho.com
  64. Accept: */*
  65. Proxy-Connection: Keep-Alive
  66. </protocol>
  67. </verify>
  68. </testcase>