test392 973 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. </client>
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol>
  43. GET /%TESTNUMBER HTTP/1.1
  44. Host: localhost:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. GET /%TESTNUMBER HTTP/1.1
  48. Host: localhost:%HTTPPORT
  49. User-Agent: curl/%VERSION
  50. Accept: */*
  51. Cookie: foobar=name
  52. </protocol>
  53. </verify>
  54. </testcase>