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

105 lines
2.8 KiB

  1. <testcase>
  2. <info>
  3. # This test is a copy of test 67, modified to use a HTTP proxy.
  4. <keywords>
  5. HTTP
  6. HTTP GET
  7. HTTP NTLM auth
  8. HTTP proxy
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <!-- no <data> in this test since we have NTLM from the start
  14. This is supposed to be returned when the server gets a first
  15. Authorization: NTLM line passed-in from the client -->
  16. <data1001>
  17. HTTP/1.1 401 Now gimme that second request of crap
  18. Server: Microsoft-IIS/5.0
  19. Content-Type: text/html; charset=iso-8859-1
  20. Content-Length: 34
  21. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  22. This is not the real page either!
  23. </data1001>
  24. # This is supposed to be returned when the server gets the second
  25. # Authorization: NTLM line passed-in from the client
  26. <data1002>
  27. HTTP/1.1 200 Things are fine in server land swsclose
  28. Server: Microsoft-IIS/5.0
  29. Content-Type: text/html; charset=iso-8859-1
  30. Content-Length: 32
  31. Finally, this is the real page!
  32. </data1002>
  33. <datacheck>
  34. HTTP/1.1 401 Now gimme that second request of crap
  35. Server: Microsoft-IIS/5.0
  36. Content-Type: text/html; charset=iso-8859-1
  37. Content-Length: 34
  38. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  39. HTTP/1.1 200 Things are fine in server land swsclose
  40. Server: Microsoft-IIS/5.0
  41. Content-Type: text/html; charset=iso-8859-1
  42. Content-Length: 32
  43. Finally, this is the real page!
  44. </datacheck>
  45. </reply>
  46. # Client-side
  47. <client>
  48. <features>
  49. NTLM
  50. </features>
  51. <server>
  52. http
  53. </server>
  54. <name>
  55. HTTP with server NTLM authorization using a proxy
  56. </name>
  57. <setenv>
  58. # we force our own host name, in order to make the test machine independent
  59. CURL_GETHOSTNAME=curlhost
  60. # we try to use the LD_PRELOAD hack, if not a debug build
  61. LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
  62. </setenv>
  63. <command>
  64. http://%HOSTIP:%HTTPPORT/1215 -u testuser:testpass --ntlm --proxy http://%HOSTIP:%HTTPPORT
  65. </command>
  66. <precheck>
  67. chkhostname curlhost
  68. </precheck>
  69. </client>
  70. # Verify data after the test has been "shot"
  71. <verify>
  72. <strip>
  73. ^User-Agent:.*
  74. </strip>
  75. <protocol>
  76. GET http://%HOSTIP:%HTTPPORT/1215 HTTP/1.1
  77. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  78. User-Agent: curl/7.30.0-DEV
  79. Host: %HOSTIP:%HTTPPORT
  80. Accept: */*
  81. Proxy-Connection: Keep-Alive
  82. GET http://%HOSTIP:%HTTPPORT/1215 HTTP/1.1
  83. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
  84. User-Agent: curl/7.30.0-DEV
  85. Host: %HOSTIP:%HTTPPORT
  86. Accept: */*
  87. Proxy-Connection: Keep-Alive
  88. </protocol>
  89. </verify>
  90. </testcase>