test172 1004 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. Content-Length: 4
  14. Connection: close
  15. boo
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP with cookies file and custom added cookie
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b log/jar%TESTNUMBER.txt -b "tool=curl; name=fool"
  28. </command>
  29. <file name="log/jar%TESTNUMBER.txt">
  30. # Netscape HTTP Cookie File
  31. # https://curl.se/docs/http-cookies.html
  32. # This file was generated by libcurl! Edit at your own risk.
  33. .%HOSTIP TRUE /silly/ FALSE 0 ismatch this
  34. .%HOSTIP TRUE / FALSE 0 partmatch present
  35. %HOSTIP FALSE /we/want/ FALSE 2139150993 nodomain value
  36. </file>
  37. </client>
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <protocol>
  41. GET /we/want/%TESTNUMBER HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. User-Agent: curl/%VERSION
  44. Accept: */*
  45. Cookie: nodomain=value; partmatch=present; tool=curl; name=fool
  46. </protocol>
  47. </verify>
  48. </testcase>