test172 981 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 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/172 -b log/jar172.txt -b "tool=curl; name=fool"
  28. </command>
  29. <file name="log/jar172.txt">
  30. # Netscape HTTP Cookie File
  31. # http://curl.haxx.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. <strip>
  41. ^User-Agent:.*
  42. </strip>
  43. <protocol>
  44. GET /we/want/172 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. Cookie: nodomain=value; partmatch=present; tool=curl; name=fool
  48. </protocol>
  49. </verify>
  50. </testcase>