test175 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP Digest auth
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  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. This is not the real page
  17. </data>
  18. <data1>
  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. </data1>
  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. #
  40. <server>
  41. http
  42. </server>
  43. <features>
  44. crypto
  45. </features>
  46. <name>
  47. HTTP POST --digest to server not requiring any auth at all
  48. </name>
  49. <command>
  50. http://%HOSTIP:%HTTPPORT/175 -u auser:apasswd --digest -d "junkelijunk"
  51. </command>
  52. </client>
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. <strip>
  56. ^User-Agent:.*
  57. </strip>
  58. <protocol nonewline="yes">
  59. POST /175 HTTP/1.1
  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 /175 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>