test1245 844 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. HTTP
  6. HTTP GET
  7. --proto
  8. --proto-redir
  9. followlocation
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <data>
  16. HTTP/1.1 301 OK swsclose
  17. Date: Tue, 09 Nov 2010 14:49:00 GMT
  18. Server: test-server/fake
  19. Content-Length: 0
  20. Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
  21. Connection: close
  22. </data>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. http
  29. ftp
  30. </server>
  31. <name>
  32. --proto deny must override --proto-redir allow
  33. </name>
  34. <command>
  35. --location --proto +all,-ftp --proto-redir -all,+ftp http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. GET /%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. </protocol>
  47. # 1 - Protocol ftp not supported or disabled in libcurl
  48. <errorcode>
  49. 1
  50. </errorcode>
  51. </verify>
  52. </testcase>