test590 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. POST callback
  7. HTTP proxy
  8. HTTP proxy NTLM auth
  9. NTLM
  10. </keywords>
  11. </info>
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.1 407 Authorization Required swsclose
  16. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  17. Proxy-Authenticate: Negotiate
  18. Proxy-Authenticate: NTLM
  19. Content-Type: text/html; charset=iso-8859-1
  20. Connection: close
  21. This is not the real page
  22. </data>
  23. # this is returned first since we get no proxy-auth
  24. <data1001>
  25. HTTP/1.1 407 Authorization Required to proxy me my dear
  26. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  27. Content-Length: 34
  28. Hey you, authenticate or go away!
  29. </data1001>
  30. # This is supposed to be returned when the server gets the second
  31. # Authorization: NTLM line passed-in from the client
  32. <data1002>
  33. HTTP/1.1 200 Things are fine in proxy land swsclose
  34. Server: Microsoft-IIS/5.0
  35. Content-Type: text/html; charset=iso-8859-1
  36. Content-Length: 42
  37. Contents of that page you requested, sir.
  38. </data1002>
  39. <datacheck>
  40. HTTP/1.1 407 Authorization Required swsclose
  41. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  42. Proxy-Authenticate: Negotiate
  43. Proxy-Authenticate: NTLM
  44. Content-Type: text/html; charset=iso-8859-1
  45. Connection: close
  46. HTTP/1.1 407 Authorization Required to proxy me my dear
  47. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  48. Content-Length: 34
  49. HTTP/1.1 200 Things are fine in proxy land swsclose
  50. Server: Microsoft-IIS/5.0
  51. Content-Type: text/html; charset=iso-8859-1
  52. Content-Length: 42
  53. Contents of that page you requested, sir.
  54. </datacheck>
  55. </reply>
  56. # Client-side
  57. <client>
  58. <server>
  59. http
  60. </server>
  61. # tool to use
  62. <tool>
  63. lib%TESTNUMBER
  64. </tool>
  65. <features>
  66. NTLM
  67. SSL
  68. !SSPI
  69. proxy
  70. </features>
  71. <name>
  72. HTTP proxy offers Negotiate+NTLM, use only NTLM
  73. </name>
  74. <command>
  75. http://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT
  76. </command>
  77. </client>
  78. # Verify data after the test has been "shot"
  79. <verify>
  80. <protocol>
  81. GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
  82. Host: test.remote.example.com
  83. Accept: */*
  84. Proxy-Connection: Keep-Alive
  85. GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
  86. Host: test.remote.example.com
  87. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  88. Accept: */*
  89. Proxy-Connection: Keep-Alive
  90. GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
  91. Host: test.remote.example.com
  92. Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAAAgACAHAAAAALAAsAcgAAAAAAAAAAAAAAhoIBAAQt1KW5CgG4YdWWcfXyfXBz1ZMCzYp37xYjBiAizmw58O6eQS7yR66eqYGWeSwl9W1lV09SS1NUQVRJT04=
  93. Accept: */*
  94. Proxy-Connection: Keep-Alive
  95. </protocol>
  96. </verify>
  97. </testcase>