test193 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. followlocation
  7. --write-out
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 302 OK swsbounce swsclose
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Content-Length: 8
  17. Connection: close
  18. Location: ./193
  19. monster
  20. </data>
  21. <data1 nocheck="yes">
  22. HTTP/1.1 200 OK
  23. Date: Thu, 09 Nov 2010 14:49:00 GMT
  24. Content-Length: 8
  25. Connection: close
  26. monster
  27. </data1>
  28. </reply>
  29. #
  30. # Client-side
  31. <client>
  32. <server>
  33. http
  34. </server>
  35. <name>
  36. HTTP GET -w num_connects with redirected fetch (2 connects)
  37. </name>
  38. <command>
  39. http://%HOSTIP:%HTTPPORT/193 -w "%{num_connects}\n" -L
  40. </command>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <strip>
  46. ^User-Agent:.*
  47. </strip>
  48. <protocol>
  49. GET /193 HTTP/1.1
  50. Host: %HOSTIP:%HTTPPORT
  51. Accept: */*
  52. GET /193 HTTP/1.1
  53. Host: %HOSTIP:%HTTPPORT
  54. Accept: */*
  55. </protocol>
  56. <stdout>
  57. HTTP/1.1 302 OK swsbounce swsclose
  58. Date: Thu, 09 Nov 2010 14:49:00 GMT
  59. Content-Length: 8
  60. Connection: close
  61. Location: ./193
  62. HTTP/1.1 200 OK
  63. Date: Thu, 09 Nov 2010 14:49:00 GMT
  64. Content-Length: 8
  65. Connection: close
  66. monster
  67. 2
  68. </stdout>
  69. </verify>
  70. </testcase>