test325 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTPS
  5. HTTP GET
  6. --proto-redir
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 301 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 7
  17. Location: http://%HOSTIP:%HTTPPORT/325
  18. MooMoo
  19. </data>
  20. <datacheck>
  21. HTTP/1.1 301 OK
  22. Date: Thu, 09 Nov 2010 14:49:00 GMT
  23. Server: test-server/fake
  24. Content-Length: 7
  25. Location: http://%HOSTIP:%HTTPPORT/325
  26. </datacheck>
  27. </reply>
  28. #
  29. # Client-side
  30. <client>
  31. <features>
  32. SSL
  33. </features>
  34. <server>
  35. https
  36. </server>
  37. <name>
  38. HTTPS with attempted redirect to denied HTTP
  39. </name>
  40. <command>
  41. -k https://%HOSTIP:%HTTPSPORT/325 --proto-redir -http --location
  42. </command>
  43. </client>
  44. #
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <strip>
  48. ^User-Agent:.*
  49. </strip>
  50. <protocol>
  51. GET /325 HTTP/1.1
  52. Host: %HOSTIP:%HTTPSPORT
  53. Accept: */*
  54. </protocol>
  55. # 1 - Protocol http not supported or disabled in libcurl
  56. <errorcode>
  57. 1
  58. </errorcode>
  59. </verify>
  60. </testcase>