test69 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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: Basic
  7. WWW-Authenticate: Wild-and-crazy
  8. WWW-Authenticate: NTLM
  9. Content-Type: text/html; charset=iso-8859-1
  10. This is not the real page
  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: Basic
  34. WWW-Authenticate: Wild-and-crazy
  35. WWW-Authenticate: NTLM
  36. Content-Type: text/html; charset=iso-8859-1
  37. HTTP/1.1 401 Now gimme that second request of crap
  38. Server: Microsoft-IIS/5.0
  39. Content-Length: 34
  40. Content-Type: text/html; charset=iso-8859-1
  41. WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  42. HTTP/1.1 200 Things are fine in server land swsclose
  43. Server: Microsoft-IIS/5.0
  44. Content-Type: text/html; charset=iso-8859-1
  45. Finally, this is the real page!
  46. </datacheck>
  47. </reply>
  48. # Client-side
  49. <client>
  50. # NTLM only works if SSL-support is present
  51. <features>
  52. SSL
  53. </features>
  54. <server>
  55. http
  56. </server>
  57. <name>
  58. HTTP with NTLM, Basic or Wild-and-crazy authorization
  59. </name>
  60. <command>
  61. http://%HOSTIP:%HOSTPORT/69 -u testuser:testpass --anyauth
  62. </command>
  63. </test>
  64. # Verify data after the test has been "shot"
  65. <verify>
  66. <strip>
  67. ^User-Agent:.*
  68. </strip>
  69. <protocol>
  70. GET /69 HTTP/1.1
  71. 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
  72. Host: 127.0.0.1:8999
  73. Pragma: no-cache
  74. Accept: */*
  75. GET /69 HTTP/1.1
  76. Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
  77. 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
  78. Host: 127.0.0.1:8999
  79. Pragma: no-cache
  80. Accept: */*
  81. GET /69 HTTP/1.1
  82. Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAAAAAAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAABgAAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FB
  83. 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
  84. Host: 127.0.0.1:8999
  85. Pragma: no-cache
  86. Accept: */*
  87. </protocol>
  88. </verify>