test1218 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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: domain=.example.fake; bug=fixed;
  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/1218 http://example.fake/c/1218 http://bexample.fake/c/1218 -b nonexisting -x %HOSTIP:%HTTPPORT
  31. </command>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <strip>
  36. ^User-Agent:.*
  37. </strip>
  38. <protocol>
  39. GET http://example.fake/c/1218 HTTP/1.1
  40. Host: example.fake
  41. Accept: */*
  42. Proxy-Connection: Keep-Alive
  43. GET http://example.fake/c/1218 HTTP/1.1
  44. Host: example.fake
  45. Accept: */*
  46. Proxy-Connection: Keep-Alive
  47. Cookie: bug=fixed
  48. GET http://bexample.fake/c/1218 HTTP/1.1
  49. Host: bexample.fake
  50. Accept: */*
  51. Proxy-Connection: Keep-Alive
  52. </protocol>
  53. </verify>
  54. </testcase>