test176 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP NTLM auth
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. # the first request has NTLM type-1 included, and then the 1001 is returned
  12. <data1001>
  13. HTTP/1.1 200 beng swsclose swsbounce
  14. Server: Microsoft-IIS/6.0
  15. Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
  16. Content-Type: text/html; charset=iso-8859-1
  17. </data1001>
  18. # the second request should be auth-less and then this is returned.
  19. <data>
  20. HTTP/1.1 200 moo swsclose
  21. Server: Microsoft-IIS/6.0
  22. Content-Type: text/html; charset=iso-8859-1
  23. Content-Length: 16
  24. content for you
  25. </data>
  26. <datacheck>
  27. HTTP/1.1 200 beng swsclose swsbounce
  28. Server: Microsoft-IIS/6.0
  29. Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
  30. Content-Type: text/html; charset=iso-8859-1
  31. HTTP/1.1 200 moo swsclose
  32. Server: Microsoft-IIS/6.0
  33. Content-Type: text/html; charset=iso-8859-1
  34. Content-Length: 16
  35. content for you
  36. </datacheck>
  37. </reply>
  38. # Client-side
  39. <client>
  40. <features>
  41. NTLM
  42. SSL
  43. !SSPI
  44. </features>
  45. <server>
  46. http
  47. </server>
  48. <name>
  49. HTTP POST --ntlm to server not requiring any auth at all
  50. </name>
  51. <command>
  52. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --ntlm -d "junkelijunk"
  53. </command>
  54. </client>
  55. # Verify data after the test has been "shot"
  56. <verify>
  57. <protocol nonewline="yes">
  58. POST /%TESTNUMBER HTTP/1.1
  59. Host: %HOSTIP:%HTTPPORT
  60. Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  61. User-Agent: curl/%VERSION
  62. Accept: */*
  63. Content-Length: 0
  64. Content-Type: application/x-www-form-urlencoded
  65. POST /%TESTNUMBER HTTP/1.1
  66. Host: %HOSTIP:%HTTPPORT
  67. User-Agent: curl/%VERSION
  68. Accept: */*
  69. Content-Length: 11
  70. Content-Type: application/x-www-form-urlencoded
  71. junkelijunk
  72. </protocol>
  73. </verify>
  74. </testcase>