test177 918 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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/177
  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/177 -u auser:apasswd --digest -d "junkelijunk"
  33. </command>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <strip>
  38. ^User-Agent:.*
  39. </strip>
  40. <protocol>
  41. POST /177 HTTP/1.1
  42. 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
  43. Host: %HOSTIP:%HTTPPORT
  44. Accept: */*
  45. Content-Length: 0
  46. Content-Type: application/x-www-form-urlencoded
  47. </protocol>
  48. </verify>
  49. </testcase>