test81 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Server-side
  2. <reply>
  3. # This is supposed to be returned when the server gets a first
  4. # Authorization: NTLM line passed-in from the client
  5. <data1001>
  6. HTTP/1.1 407 Now gimme that second request of crap
  7. Server: Microsoft-IIS/5.0
  8. Content-Type: text/html; charset=iso-8859-1
  9. Content-Length: 34
  10. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  11. This is not the real page either!
  12. </data1001>
  13. # This is supposed to be returned when the server gets the second
  14. # Authorization: NTLM line passed-in from the client
  15. <data1002>
  16. HTTP/1.1 200 Things are fine in server land swsclose
  17. Server: Microsoft-IIS/5.0
  18. Content-Type: text/html; charset=iso-8859-1
  19. Finally, this is the real page!
  20. </data1002>
  21. <datacheck>
  22. HTTP/1.1 407 Now gimme that second request of crap
  23. Server: Microsoft-IIS/5.0
  24. Content-Type: text/html; charset=iso-8859-1
  25. Content-Length: 34
  26. Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
  27. HTTP/1.1 200 Things are fine in server land swsclose
  28. Server: Microsoft-IIS/5.0
  29. Content-Type: text/html; charset=iso-8859-1
  30. Finally, this is the real page!
  31. </datacheck>
  32. </reply>
  33. # Client-side
  34. <client>
  35. # NTLM only works if SSL-support is present
  36. <features>
  37. SSL
  38. </features>
  39. <server>
  40. http
  41. </server>
  42. <name>
  43. HTTP with proxy using NTLM authorization
  44. </name>
  45. <command>
  46. http://%HOSTIP:%HOSTPORT/81 --proxy-user testuser:testpass -x http://%HOSTIP:%HOSTPORT --proxy-ntlm
  47. </command>
  48. </test>
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <strip>
  52. ^User-Agent:.*
  53. </strip>
  54. <protocol>
  55. GET http://127.0.0.1:8999/81 HTTP/1.1
  56. Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
  57. 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
  58. Host: 127.0.0.1:8999
  59. Pragma: no-cache
  60. Accept: */*
  61. GET http://127.0.0.1:8999/81 HTTP/1.1
  62. Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAAAAAAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAABgAAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FB
  63. 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
  64. Host: 127.0.0.1:8999
  65. Pragma: no-cache
  66. Accept: */*
  67. </protocol>
  68. </verify>