test598 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP set cookie
  7. cookies
  8. CURLOPT_REFERER
  9. curl_easy_reset
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <data>
  16. HTTP/1.1 200 OK
  17. Date: Thu, 09 Nov 2010 14:49:00 GMT
  18. Content-Length: 6
  19. Connection: close
  20. Content-Type: text/html
  21. -foo-
  22. </data>
  23. # since the request runs twice
  24. <datacheck>
  25. HTTP/1.1 200 OK
  26. Date: Thu, 09 Nov 2010 14:49:00 GMT
  27. Content-Length: 6
  28. Connection: close
  29. Content-Type: text/html
  30. -foo-
  31. HTTP/1.1 200 OK
  32. Date: Thu, 09 Nov 2010 14:49:00 GMT
  33. Content-Length: 6
  34. Connection: close
  35. Content-Type: text/html
  36. -foo-
  37. </datacheck>
  38. </reply>
  39. # Client-side
  40. <client>
  41. <server>
  42. http
  43. </server>
  44. # tool is what to use instead of 'curl'
  45. <tool>
  46. lib598
  47. </tool>
  48. <name>
  49. curl_easy_reset with referer and other strings set
  50. </name>
  51. <command>
  52. http://%HOSTIP:%HTTPPORT/598
  53. </command>
  54. </client>
  55. #
  56. # Verify data after the test has been "shot"
  57. <verify>
  58. <protocol>
  59. GET /598 HTTP/1.1
  60. Host: %HOSTIP:%HTTPPORT
  61. User-Agent: the-moo agent next generation
  62. Accept: */*
  63. Referer: http://example.com/the-moo
  64. Cookie: name=moo
  65. GET /598 HTTP/1.1
  66. Host: %HOSTIP:%HTTPPORT
  67. Accept: */*
  68. </protocol>
  69. </verify>
  70. </testcase>