test177 817 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP Digest auth
  7. followlocation
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 302 *MOVED* swsclose swsbounce
  14. Server: Microsoft-IIS/6.0
  15. Location: /mooooo/%TESTNUMBER
  16. Content-Type: text/html; charset=iso-8859-1
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. #
  22. <server>
  23. http
  24. </server>
  25. <features>
  26. crypto
  27. </features>
  28. <name>
  29. HTTP POST --digest to server doing a 302-location response
  30. </name>
  31. <command>
  32. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -d "junkelijunk"
  33. </command>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <protocol>
  38. POST /%TESTNUMBER HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. User-Agent: curl/%VERSION
  41. Accept: */*
  42. Content-Length: 0
  43. Content-Type: application/x-www-form-urlencoded
  44. </protocol>
  45. </verify>
  46. </testcase>