test1562 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTPS
  5. HTTP
  6. HTTP GET
  7. cookies
  8. HTTP replaced headers
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data1>
  14. HTTP/1.1 200 OK
  15. Date: Tue, 09 Nov 2010 14:49:00 GMT
  16. Server: test-server/fake
  17. Set-Cookie: foo=123; path=/; secure;
  18. Content-Length: 7
  19. nomnom
  20. </data1>
  21. <data2>
  22. HTTP/1.1 200 OK
  23. Date: Tue, 09 Nov 2010 14:49:00 GMT
  24. Server: test-server/fake
  25. Set-Cookie: foo=; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/
  26. Content-Length: 7
  27. nomnom
  28. </data2>
  29. </reply>
  30. # Client-side
  31. <client>
  32. <features>
  33. SSL
  34. </features>
  35. <server>
  36. http
  37. https
  38. </server>
  39. <name>
  40. Expire secure cookies over HTTPS
  41. </name>
  42. <command>
  43. -k https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001 -H "Host: www.example.com" https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002 -b "non-existing" https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001
  44. </command>
  45. </client>
  46. <verify>
  47. <protocol>
  48. GET /%TESTNUMBER0001 HTTP/1.1
  49. Host: www.example.com
  50. User-Agent: curl/%VERSION
  51. Accept: */*
  52. GET /%TESTNUMBER0002 HTTP/1.1
  53. Host: www.example.com
  54. User-Agent: curl/%VERSION
  55. Accept: */*
  56. Cookie: foo=123
  57. GET /%TESTNUMBER0001 HTTP/1.1
  58. Host: www.example.com
  59. User-Agent: curl/%VERSION
  60. Accept: */*
  61. </protocol>
  62. </verify>
  63. </testcase>