test54 594 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. followlocation
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 302 This is a weirdo text message swsclose
  13. Connection: close
  14. Location:
  15. This server reply is for testing
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP with blank Location:
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/want/54 -L
  28. </command>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <strip>
  33. ^User-Agent:.*
  34. </strip>
  35. <protocol>
  36. GET /want/54 HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. Accept: */*
  39. </protocol>
  40. </verify>
  41. </testcase>