test1155 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Content-Length: 0
  15. Set-Cookie: domain=value;path=/
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP cookie with parameter word as name
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
  28. </command>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <protocol>
  33. GET /%TESTNUMBER HTTP/1.1
  34. Host: %HOSTIP:%HTTPPORT
  35. User-Agent: curl/%VERSION
  36. Accept: */*
  37. </protocol>
  38. <file name="log/cookies%TESTNUMBER.txt" mode="text">
  39. # Netscape HTTP Cookie File
  40. # https://curl.se/docs/http-cookies.html
  41. # This file was generated by libcurl! Edit at your own risk.
  42. %HOSTIP FALSE / FALSE 0 domain value
  43. </file>
  44. </verify>
  45. </testcase>