test493 1023 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HSTS
  5. url_effective
  6. </keywords>
  7. </info>
  8. <reply>
  9. # we use this as response to a CONNECT
  10. <data nocheck="yes">
  11. HTTP/1.1 403 not OK at all
  12. Date: Tue, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fake
  14. Content-Length: 6
  15. Connection: close
  16. Funny-head: yesyes
  17. -foo-
  18. </data>
  19. </reply>
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <features>
  25. HSTS
  26. proxy
  27. https
  28. </features>
  29. <file name="log/input%TESTNUMBER">
  30. .hsts.example "20311001 04:47:41"
  31. </file>
  32. <name>
  33. HSTS and %{url_effective} after upgrade
  34. </name>
  35. <command>
  36. -x http://%HOSTIP:%HTTPPORT http://this.hsts.example/%TESTNUMBER --hsts log/input%TESTNUMBER -w '%{url_effective}\n'
  37. </command>
  38. </client>
  39. <verify>
  40. # we let it CONNECT to the server to confirm HSTS but deny from there
  41. <protocol>
  42. CONNECT this.hsts.example:443 HTTP/1.1
  43. Host: this.hsts.example:443
  44. User-Agent: curl/%VERSION
  45. Proxy-Connection: Keep-Alive
  46. </protocol>
  47. <stdout>
  48. https://this.hsts.example/%TESTNUMBER
  49. </stdout>
  50. # Proxy CONNECT aborted
  51. <errorcode>
  52. 56
  53. </errorcode>
  54. </verify>
  55. </testcase>