test555 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <testcase>
  2. # NOTE: this test case is a duplicate of 547 but the tool is built to use the
  3. # multi interface instead of easy, but that shouldn't be noticeable at all in
  4. # this file!
  5. <info>
  6. <keywords>
  7. HTTP
  8. HTTP POST
  9. POST callback
  10. HTTP proxy
  11. HTTP proxy NTLM auth
  12. multi
  13. NTLM
  14. </keywords>
  15. </info>
  16. # Server-side
  17. <reply>
  18. <data>
  19. HTTP/1.1 407 Authorization Required swsclose
  20. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  21. Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
  22. Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
  23. Proxy-Authenticate: NTLM
  24. Content-Type: text/html; charset=iso-8859-1
  25. Connection: close
  26. This is not the real page
  27. </data>
  28. # this is returned first since we get no proxy-auth
  29. <data1001>
  30. HTTP/1.1 407 Authorization Required to proxy me my dear
  31. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  32. Content-Length: 34
  33. Hey you, authenticate or go away!
  34. </data1001>
  35. # This is supposed to be returned when the server gets the second
  36. # Authorization: NTLM line passed-in from the client
  37. <data1002>
  38. HTTP/1.1 200 Things are fine in proxy land swsclose
  39. Server: Microsoft-IIS/5.0
  40. Content-Type: text/html; charset=iso-8859-1
  41. Content-Length: 42
  42. Contents of that page you requested, sir.
  43. </data1002>
  44. <datacheck>
  45. HTTP/1.1 407 Authorization Required swsclose
  46. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  47. Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
  48. Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
  49. Proxy-Authenticate: NTLM
  50. Content-Type: text/html; charset=iso-8859-1
  51. Connection: close
  52. HTTP/1.1 407 Authorization Required to proxy me my dear
  53. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  54. Content-Length: 34
  55. HTTP/1.1 200 Things are fine in proxy land swsclose
  56. Server: Microsoft-IIS/5.0
  57. Content-Type: text/html; charset=iso-8859-1
  58. Content-Length: 42
  59. Contents of that page you requested, sir.
  60. </datacheck>
  61. </reply>
  62. # Client-side
  63. <client>
  64. <server>
  65. http
  66. </server>
  67. # tool to use
  68. <tool>
  69. lib%TESTNUMBER
  70. </tool>
  71. <features>
  72. NTLM
  73. SSL
  74. !SSPI
  75. proxy
  76. </features>
  77. <name>
  78. HTTP proxy auth NTLM with POST data from read callback multi-if
  79. </name>
  80. <command>
  81. http://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT testuser:testpass
  82. </command>
  83. </client>
  84. # Verify data after the test has been "shot"
  85. <verify>
  86. <protocol>
  87. POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
  88. Host: test.remote.example.com
  89. Accept: */*
  90. Proxy-Connection: Keep-Alive
  91. Content-Length: 36
  92. Content-Type: application/x-www-form-urlencoded
  93. this is the blurb we want to upload
  94. POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
  95. Host: test.remote.example.com
  96. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  97. Accept: */*
  98. Proxy-Connection: Keep-Alive
  99. Content-Length: 0
  100. Content-Type: application/x-www-form-urlencoded
  101. POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
  102. Host: test.remote.example.com
  103. Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
  104. Accept: */*
  105. Proxy-Connection: Keep-Alive
  106. Content-Length: 36
  107. Content-Type: application/x-www-form-urlencoded
  108. this is the blurb we want to upload
  109. </protocol>
  110. </verify>
  111. </testcase>