test81 2.8 KB

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