test325 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 7
  17. Location: http://somewhere/%TESTNUMBER
  18. MooMoo
  19. </data>
  20. <datacheck>
  21. HTTP/1.1 301 OK
  22. Date: Tue, 09 Nov 2010 14:49:00 GMT
  23. Server: test-server/fake
  24. Content-Length: 7
  25. Location: http://somewhere/%TESTNUMBER
  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/%TESTNUMBER --proto-redir -http --location
  42. </command>
  43. </client>
  44. #
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <protocol>
  48. GET /%TESTNUMBER HTTP/1.1
  49. Host: %HOSTIP:%HTTPSPORT
  50. User-Agent: curl/%VERSION
  51. Accept: */*
  52. </protocol>
  53. # 1 - Protocol http not supported or disabled in libcurl
  54. <errorcode>
  55. 1
  56. </errorcode>
  57. </verify>
  58. </testcase>