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

120 linhas
3.1 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP CONNECT
  7. HTTP proxy
  8. HTTP proxy NTLM auth
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. # this is returned first since we get no proxy-auth
  14. <connect1001>
  15. HTTP/1.1 407 Authorization Required to proxy me my dear
  16. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  17. And you should ignore this data.
  18. </connect1001>
  19. # This is supposed to be returned when the server gets the second
  20. # Authorization: NTLM line passed-in from the client
  21. <connect1002>
  22. HTTP/1.1 200 Things are fine in proxy land
  23. Server: Microsoft-IIS/5.0
  24. Content-Type: text/html; charset=iso-8859-1
  25. </connect1002>
  26. # this is returned when we get a GET!
  27. <data2>
  28. HTTP/1.1 200 OK
  29. Date: Thu, 09 Nov 2010 14:49:00 GMT
  30. Content-Length: 7
  31. Connection: close
  32. Content-Type: text/html
  33. Funny-head: yesyes
  34. daniel
  35. </data2>
  36. # then this is returned when we get proxy-auth
  37. <data1000>
  38. HTTP/1.1 200 OK swsbounce
  39. Server: no
  40. Nice proxy auth sir!
  41. </data1000>
  42. <datacheck>
  43. HTTP/1.1 407 Authorization Required to proxy me my dear
  44. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  45. HTTP/1.1 200 Things are fine in proxy land
  46. Server: Microsoft-IIS/5.0
  47. Content-Type: text/html; charset=iso-8859-1
  48. HTTP/1.1 200 OK
  49. Date: Thu, 09 Nov 2010 14:49:00 GMT
  50. Content-Length: 7
  51. Connection: close
  52. Content-Type: text/html
  53. Funny-head: yesyes
  54. daniel
  55. </datacheck>
  56. </reply>
  57. # Client-side
  58. <client>
  59. <server>
  60. http
  61. </server>
  62. <features>
  63. NTLM
  64. </features>
  65. <name>
  66. HTTP proxy CONNECT auth NTLM
  67. </name>
  68. <setenv>
  69. # we force our own host name, in order to make the test machine independent
  70. CURL_GETHOSTNAME=curlhost
  71. # we try to use the LD_PRELOAD hack, if not a debug build
  72. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  73. </setenv>
  74. <command>
  75. http://test.remote.example.com.209:%HTTPPORT/path/2090002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-ntlm --proxytunnel
  76. </command>
  77. <precheck>
  78. chkhostname curlhost
  79. </precheck>
  80. </client>
  81. # Verify data after the test has been "shot"
  82. <verify>
  83. <strip>
  84. ^User-Agent: curl/.*
  85. </strip>
  86. <protocol>
  87. CONNECT test.remote.example.com.209:%HTTPPORT HTTP/1.1
  88. Host: test.remote.example.com.209:%HTTPPORT
  89. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  90. Proxy-Connection: Keep-Alive
  91. CONNECT test.remote.example.com.209:%HTTPPORT HTTP/1.1
  92. Host: test.remote.example.com.209:%HTTPPORT
  93. Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAAIAAgAdQAAAAAAAAAAAAAABoKBAKAeQjzKtCQ7ubW8S6MN7B59436GAxPu0CVROwwNBsgxML49gcbAXLT/bU+H5wrS9XNpbGx5Y3VybGhvc3Q=
  94. Proxy-Connection: Keep-Alive
  95. GET /path/2090002 HTTP/1.1
  96. User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
  97. Host: test.remote.example.com.209:%HTTPPORT
  98. Accept: */*
  99. </protocol>
  100. </verify>
  101. </testcase>