test1218 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. cookies
  8. </keywords>
  9. </info>
  10. # This test is very similar to 1216, only that it sets the cookies from the
  11. # first site instead of reading from a file
  12. <reply>
  13. <data>
  14. HTTP/1.1 200 OK
  15. Date: Tue, 25 Sep 2001 19:37:44 GMT
  16. Set-Cookie: bug=fixed; domain=.example.fake;
  17. Content-Length: 21
  18. This server says moo
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP cookies and domains with same prefix
  28. </name>
  29. <command>
  30. http://example.fake/c/%TESTNUMBER http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b nonexisting -x %HOSTIP:%HTTPPORT
  31. </command>
  32. <features>
  33. proxy
  34. </features>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <protocol>
  39. GET http://example.fake/c/%TESTNUMBER HTTP/1.1
  40. Host: example.fake
  41. User-Agent: curl/%VERSION
  42. Accept: */*
  43. Proxy-Connection: Keep-Alive
  44. GET http://example.fake/c/%TESTNUMBER HTTP/1.1
  45. Host: example.fake
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. Proxy-Connection: Keep-Alive
  49. Cookie: bug=fixed
  50. GET http://bexample.fake/c/%TESTNUMBER HTTP/1.1
  51. Host: bexample.fake
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. Proxy-Connection: Keep-Alive
  55. </protocol>
  56. </verify>
  57. </testcase>