test1029 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. redirect_url
  7. followlocation
  8. --write-out
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 301 This is a weirdo text message swsclose
  15. Location: data/10290002.txt?coolsite=yes
  16. Content-Length: 62
  17. Connection: close
  18. This server reply is for testing a simple Location: following
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP Location: and 'redirect_url' check
  28. </name>
  29. <command>
  30. http://%HOSTIP:%HTTPPORT/we/want/our/1029 -w '%{redirect_url}\n'
  31. </command>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <strip>
  36. ^User-Agent:.*
  37. </strip>
  38. <protocol>
  39. GET /we/want/our/1029 HTTP/1.1
  40. Host: %HOSTIP:%HTTPPORT
  41. Accept: */*
  42. </protocol>
  43. <stdout>
  44. HTTP/1.1 301 This is a weirdo text message swsclose
  45. Location: data/10290002.txt?coolsite=yes
  46. Content-Length: 62
  47. Connection: close
  48. This server reply is for testing a simple Location: following
  49. http://%HOSTIP:%HTTPPORT/we/want/our/data/10290002.txt?coolsite=yes
  50. </stdout>
  51. </verify>
  52. </testcase>