test176 1.9 KB

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