test392 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. cookies
  7. secure
  8. </keywords>
  9. </info>
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Length: 4
  16. Content-Type: text/html
  17. Funny-head: yesyes
  18. Set-Cookie: foobar=name; path=/; secure
  19. boo
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. </server>
  27. <name>
  28. HTTP secure cookies over localhost
  29. </name>
  30. <setenv>
  31. TZ=GMT
  32. </setenv>
  33. <command>
  34. http://localhost:%HTTPPORT/%TESTNUMBER -b none http://localhost:%HTTPPORT/%TESTNUMBER
  35. </command>
  36. <precheck>
  37. perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
  38. </precheck>
  39. <features>
  40. cookies
  41. </features>
  42. </client>
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. GET /%TESTNUMBER HTTP/1.1
  47. Host: localhost:%HTTPPORT
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. GET /%TESTNUMBER HTTP/1.1
  51. Host: localhost:%HTTPPORT
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. Cookie: foobar=name
  55. </protocol>
  56. </verify>
  57. </testcase>