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

100 wiersze
2.8 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. HTTP proxy Digest auth
  8. HTTP Digest auth
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. # this is returned first since we get no proxy-auth
  14. <data>
  15. HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
  16. Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
  17. And you should ignore this data.
  18. </data>
  19. # then this is returned since we get no server-auth
  20. <data1000>
  21. HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
  22. WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"
  23. you should ignore this data too
  24. </data1000>
  25. <data1001>
  26. HTTP/1.1 200 OK swsclose
  27. Server: no
  28. Content-Length: 15
  29. Nice auth sir!
  30. </data1001>
  31. <datacheck>
  32. HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
  33. Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
  34. HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
  35. WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"
  36. HTTP/1.1 200 OK swsclose
  37. Server: no
  38. Content-Length: 15
  39. Nice auth sir!
  40. </datacheck>
  41. </reply>
  42. # Client-side
  43. <client>
  44. <server>
  45. http
  46. </server>
  47. <features>
  48. crypto
  49. </features>
  50. <name>
  51. HTTP with proxy-requiring-Digest to site-requiring-Digest
  52. </name>
  53. <command>
  54. http://data.from.server.requiring.digest.hohoho.com/168 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-digest --digest --user digest:alot
  55. </command>
  56. </client>
  57. # Verify data after the test has been "shot"
  58. <verify>
  59. <strip>
  60. ^User-Agent: curl/.*
  61. </strip>
  62. <protocol>
  63. GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
  64. 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
  65. Host: data.from.server.requiring.digest.hohoho.com
  66. Accept: */*
  67. Proxy-Connection: Keep-Alive
  68. GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
  69. Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"
  70. 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
  71. Host: data.from.server.requiring.digest.hohoho.com
  72. Accept: */*
  73. Proxy-Connection: Keep-Alive
  74. GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
  75. Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"
  76. Authorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/168", response="ca87f2d768a231e2d637a55698d5c416"
  77. User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.3
  78. Host: data.from.server.requiring.digest.hohoho.com
  79. Accept: */*
  80. Proxy-Connection: Keep-Alive
  81. </protocol>
  82. </verify>
  83. </testcase>