test1319 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <testcase>
  2. <info>
  3. <keywords>
  4. POP3
  5. RETR
  6. HTTP
  7. HTTP CONNECT
  8. HTTP proxy
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <connect>
  15. HTTP/1.1 200 Mighty fine indeed
  16. pop3: sure hit me
  17. </connect>
  18. # When doing LIST, we get the default list output hard-coded in the test
  19. # FTP server
  20. <data>
  21. From: me@somewhere
  22. To: fake@nowhere
  23. body
  24. --
  25. yours sincerely
  26. </data>
  27. <datacheck>
  28. From: me@somewhere
  29. To: fake@nowhere
  30. body
  31. --
  32. yours sincerely
  33. </datacheck>
  34. </reply>
  35. #
  36. # Client-side
  37. <client>
  38. <server>
  39. pop3
  40. http-proxy
  41. </server>
  42. <features>
  43. http
  44. proxy
  45. </features>
  46. <name>
  47. POP3 fetch tunneled through HTTP proxy
  48. </name>
  49. <command>
  50. pop3://pop.%TESTNUMBER:%POP3PORT/%TESTNUMBER -p -x %HOSTIP:%PROXYPORT -u user:secret
  51. </command>
  52. </client>
  53. #
  54. # Verify data after the test has been "shot"
  55. <verify>
  56. <protocol>
  57. CAPA
  58. USER user
  59. PASS secret
  60. RETR %TESTNUMBER
  61. QUIT
  62. </protocol>
  63. <proxy>
  64. CONNECT pop.%TESTNUMBER:%POP3PORT HTTP/1.1
  65. Host: pop.%TESTNUMBER:%POP3PORT
  66. User-Agent: curl/%VERSION
  67. Proxy-Connection: Keep-Alive
  68. </proxy>
  69. </verify>
  70. </testcase>