test91 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # Server-side
  2. <reply>
  3. <data>
  4. HTTP/1.1 401 Authorization Required swsclose
  5. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  6. WWW-Authenticate: Magic-Negotiate
  7. WWW-Authenticate: NTLM
  8. WWW-Authenticate: Basic realm="daniel"
  9. Content-Type: text/html; charset=iso-8859-1
  10. Content-Length: 0
  11. </data>
  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 401 Now gimme that second request of crap
  16. Server: Microsoft-IIS/5.0
  17. Content-Length: 34
  18. Content-Type: text/html; charset=iso-8859-1
  19. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  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. Finally, this is the real page!
  29. </data1002>
  30. <datacheck>
  31. HTTP/1.1 401 Authorization Required swsclose
  32. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  33. WWW-Authenticate: Magic-Negotiate
  34. WWW-Authenticate: NTLM
  35. WWW-Authenticate: Basic realm="daniel"
  36. Content-Type: text/html; charset=iso-8859-1
  37. Content-Length: 0
  38. HTTP/1.1 401 Now gimme that second request of crap
  39. Server: Microsoft-IIS/5.0
  40. Content-Length: 34
  41. Content-Type: text/html; charset=iso-8859-1
  42. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  43. HTTP/1.1 200 Things are fine in server land swsclose
  44. Server: Microsoft-IIS/5.0
  45. Content-Type: text/html; charset=iso-8859-1
  46. Finally, this is the real page!
  47. </datacheck>
  48. </reply>
  49. # Client-side
  50. <client>
  51. # NTLM only works if SSL-support is present
  52. <features>
  53. SSL
  54. </features>
  55. <server>
  56. http
  57. </server>
  58. <name>
  59. HTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0
  60. </name>
  61. <command>
  62. http://%HOSTIP:%HOSTPORT/91 --anyauth -u mydomain\\myself:secret
  63. </command>
  64. </test>
  65. # Verify data after the test has been "shot"
  66. <verify>
  67. <strip>
  68. ^User-Agent:.*
  69. </strip>
  70. <protocol>
  71. GET /91 HTTP/1.1
  72. User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  73. Host: 127.0.0.1:8999
  74. Pragma: no-cache
  75. Accept: */*
  76. GET /91 HTTP/1.1
  77. Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
  78. User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  79. Host: 127.0.0.1:8999
  80. Pragma: no-cache
  81. Accept: */*
  82. GET /91 HTTP/1.1
  83. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAE4AAAAAAAAAZgAAAAgACABAAAAABgAGAEgAAAAAAAAATgAAAAAAAABmAAAAAYIAAG15ZG9tYWlubXlzZWxmwjImlHmYemDYVmFrmRFoVn3jfoYDE+7Q
  84. User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  85. Host: 127.0.0.1:8999
  86. Pragma: no-cache
  87. Accept: */*
  88. </protocol>
  89. </verify>