test1216 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 log/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT
  32. </command>
  33. <file name="log/injar%TESTNUMBER">
  34. example.fake FALSE /a FALSE 2139150993 mooo indeed
  35. example.fake FALSE /b FALSE 0 moo1 indeed
  36. example.fake FALSE /c FALSE 2139150993 moo2 indeed
  37. example.fake TRUE /c FALSE 2139150993 moo3 indeed
  38. </file>
  39. <features>
  40. proxy
  41. </features>
  42. </client>
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. GET http://example.fake/c/%TESTNUMBER HTTP/1.1
  47. Host: example.fake
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. Proxy-Connection: Keep-Alive
  51. Cookie: moo3=indeed; moo2=indeed
  52. GET http://bexample.fake/c/%TESTNUMBER HTTP/1.1
  53. Host: bexample.fake
  54. User-Agent: curl/%VERSION
  55. Accept: */*
  56. Proxy-Connection: Keep-Alive
  57. </protocol>
  58. </verify>
  59. </testcase>