test441 1.2 KB

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