test27 809 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. cookies
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 Mooo swsclose
  13. Connection: close
  14. Set-Cookie: path=/; thewinneris=nowayyouwin;
  15. Content-Length: 8
  16. *flopp*
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. Get same cookie page several times
  26. </name>
  27. <command>
  28. "http://%HOSTIP:%HTTPPORT/want/{27,27,27}" -b none
  29. </command>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <strip>
  34. ^User-Agent: curl.*
  35. </strip>
  36. <protocol>
  37. GET /want/27 HTTP/1.1
  38. Host: %HOSTIP:%HTTPPORT
  39. Accept: */*
  40. GET /want/27 HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. Accept: */*
  43. Cookie: thewinneris=nowayyouwin
  44. GET /want/27 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. Cookie: thewinneris=nowayyouwin
  48. </protocol>
  49. </verify>
  50. </testcase>