test1215 2.6 KB

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