test175 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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/%TESTNUMBER -u auser:apasswd --digest -d "junkelijunk"
  51. </command>
  52. </client>
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. <protocol nonewline="yes">
  56. POST /%TESTNUMBER HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. User-Agent: curl/%VERSION
  59. Accept: */*
  60. Content-Length: 0
  61. Content-Type: application/x-www-form-urlencoded
  62. POST /%TESTNUMBER HTTP/1.1
  63. Host: %HOSTIP:%HTTPPORT
  64. User-Agent: curl/%VERSION
  65. Accept: */*
  66. Content-Length: 11
  67. Content-Type: application/x-www-form-urlencoded
  68. junkelijunk
  69. </protocol>
  70. </verify>
  71. </testcase>