test1216 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. cookies
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Server: Microsoft-IIS/4.0
  15. Date: Tue, 25 Sep 2001 19:37:44 GMT
  16. Content-Type: text/html
  17. Connection: close
  18. Content-Length: 21
  19. This server says moo
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. </server>
  27. <name>
  28. HTTP cookie domains tailmatching the host name
  29. </name>
  30. <command>
  31. http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT
  32. </command>
  33. <file name="%LOGDIR/injar%TESTNUMBER">
  34. example.fake FALSE /a FALSE 22139150993 mooo indeed
  35. example.fake FALSE /b FALSE 0 moo1 indeed
  36. example.fake FALSE /c FALSE 22139150993 moo2 indeed
  37. example.fake TRUE /c FALSE 22139150993 moo3 indeed
  38. </file>
  39. <features>
  40. cookies
  41. proxy
  42. </features>
  43. </client>
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <protocol>
  47. GET http://example.fake/c/%TESTNUMBER HTTP/1.1
  48. Host: example.fake
  49. User-Agent: curl/%VERSION
  50. Accept: */*
  51. Proxy-Connection: Keep-Alive
  52. Cookie: moo3=indeed; moo2=indeed
  53. GET http://bexample.fake/c/%TESTNUMBER HTTP/1.1
  54. Host: bexample.fake
  55. User-Agent: curl/%VERSION
  56. Accept: */*
  57. Proxy-Connection: Keep-Alive
  58. </protocol>
  59. </verify>
  60. </testcase>