test81 2.5 KB

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