test27 907 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: thewinneris=nowayyouwin; path=/;
  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/{%TESTNUMBER,%TESTNUMBER,%TESTNUMBER}" -b none
  29. </command>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <protocol>
  34. GET /want/%TESTNUMBER HTTP/1.1
  35. Host: %HOSTIP:%HTTPPORT
  36. User-Agent: curl/%VERSION
  37. Accept: */*
  38. GET /want/%TESTNUMBER HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. User-Agent: curl/%VERSION
  41. Accept: */*
  42. Cookie: thewinneris=nowayyouwin
  43. GET /want/%TESTNUMBER HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. Cookie: thewinneris=nowayyouwin
  48. </protocol>
  49. </verify>
  50. </testcase>