test676 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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: Tue, 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: Tue, 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: Tue, 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. <file name="log/cookies676">
  42. %HOSTIP TRUE /we/want/ FALSE 2118138987 proven yes
  43. </file>
  44. <server>
  45. http
  46. </server>
  47. # tool is what to use instead of 'curl'
  48. <tool>
  49. lib%TESTNUMBER
  50. </tool>
  51. <name>
  52. verify setting CURLOPT_COOKIEFILE to NULL again
  53. </name>
  54. <command>
  55. http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
  56. </command>
  57. </client>
  58. #
  59. # Verify data after the test has been "shot"
  60. <verify>
  61. <protocol>
  62. GET /we/want/%TESTNUMBER HTTP/1.1
  63. Host: %HOSTIP:%HTTPPORT
  64. User-Agent: the-moo agent next generation
  65. Accept: */*
  66. Cookie: proven=yes
  67. GET /we/want/%TESTNUMBER HTTP/1.1
  68. Host: %HOSTIP:%HTTPPORT
  69. User-Agent: the-moo agent next generation
  70. Accept: */*
  71. </protocol>
  72. </verify>
  73. </testcase>