诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

124 lines
3.5 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. POST callback
  7. HTTP proxy
  8. HTTP proxy NTLM auth
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 407 Authorization Required swsclose
  15. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  16. Proxy-Authenticate: Negotiate
  17. Proxy-Authenticate: NTLM
  18. Content-Type: text/html; charset=iso-8859-1
  19. Connection: close
  20. This is not the real page
  21. </data>
  22. # this is returned first since we get no proxy-auth
  23. <data1001>
  24. HTTP/1.1 407 Authorization Required to proxy me my dear
  25. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  26. Content-Length: 34
  27. Hey you, authenticate or go away!
  28. </data1001>
  29. # This is supposed to be returned when the server gets the second
  30. # Authorization: NTLM line passed-in from the client
  31. <data1002>
  32. HTTP/1.1 200 Things are fine in proxy land swsclose
  33. Server: Microsoft-IIS/5.0
  34. Content-Type: text/html; charset=iso-8859-1
  35. Content-Length: 42
  36. Contents of that page you requested, sir.
  37. </data1002>
  38. <datacheck>
  39. HTTP/1.1 407 Authorization Required swsclose
  40. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  41. Proxy-Authenticate: Negotiate
  42. Proxy-Authenticate: NTLM
  43. Content-Type: text/html; charset=iso-8859-1
  44. Connection: close
  45. HTTP/1.1 407 Authorization Required to proxy me my dear
  46. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  47. Content-Length: 34
  48. HTTP/1.1 200 Things are fine in proxy land swsclose
  49. Server: Microsoft-IIS/5.0
  50. Content-Type: text/html; charset=iso-8859-1
  51. Content-Length: 42
  52. Contents of that page you requested, sir.
  53. </datacheck>
  54. </reply>
  55. # Client-side
  56. <client>
  57. <server>
  58. http
  59. </server>
  60. # tool to use
  61. <tool>
  62. lib590
  63. </tool>
  64. <features>
  65. NTLM
  66. </features>
  67. <name>
  68. HTTP proxy offers Negotiate+NTLM, use only NTLM
  69. </name>
  70. <setenv>
  71. # we force our own host name, in order to make the test machine independent
  72. CURL_GETHOSTNAME=curlhost
  73. # we try to use the LD_PRELOAD hack, if not a debug build
  74. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  75. </setenv>
  76. <command>
  77. http://test.remote.example.com/path/590 http://%HOSTIP:%HTTPPORT
  78. </command>
  79. <precheck>
  80. chkhostname curlhost
  81. </precheck>
  82. </client>
  83. # Verify data after the test has been "shot"
  84. <verify>
  85. <strip>
  86. ^User-Agent: curl/.*
  87. </strip>
  88. <protocol>
  89. GET http://test.remote.example.com/path/590 HTTP/1.1
  90. User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
  91. Host: test.remote.example.com
  92. Accept: */*
  93. Proxy-Connection: Keep-Alive
  94. GET http://test.remote.example.com/path/590 HTTP/1.1
  95. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  96. User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
  97. Host: test.remote.example.com
  98. Accept: */*
  99. Proxy-Connection: Keep-Alive
  100. GET http://test.remote.example.com/path/590 HTTP/1.1
  101. Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAAAgACAHAAAAAIAAgAcgAAAAAAAAAAAAAABoKBAAQt1KW5CgG4YdWWcfXyfXBz1ZMCzYp37xYjBiAizmw58O6eQS7yR66eqYGWeSwl9W1lY3VybGhvc3Q=
  102. User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
  103. Host: test.remote.example.com
  104. Accept: */*
  105. Proxy-Connection: Keep-Alive
  106. </protocol>
  107. </verify>
  108. </testcase>