test1319 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. HTTP/1.1 200 Mighty fine indeed
  29. pop3: sure hit me
  30. From: me@somewhere
  31. To: fake@nowhere
  32. body
  33. --
  34. yours sincerely
  35. </datacheck>
  36. </reply>
  37. #
  38. # Client-side
  39. <client>
  40. <server>
  41. pop3
  42. http-proxy
  43. </server>
  44. <features>
  45. http
  46. </features>
  47. <name>
  48. POP3 fetch tunneled through HTTP proxy
  49. </name>
  50. <command>
  51. pop3://pop.1319:%POP3PORT/1319 -p -x %HOSTIP:%PROXYPORT -u user:secret
  52. </command>
  53. </client>
  54. #
  55. # Verify data after the test has been "shot"
  56. <verify>
  57. <strip>
  58. ^User-Agent:
  59. </strip>
  60. <protocol>
  61. CAPA
  62. USER user
  63. PASS secret
  64. RETR 1319
  65. QUIT
  66. </protocol>
  67. <proxy>
  68. CONNECT pop.1319:%POP3PORT HTTP/1.1
  69. Host: pop.1319:%POP3PORT
  70. User-Agent: curl/7.24.0-DEV (i686-pc-linux-gnu) libcurl/7.24.0-DEV OpenSSL/1.0.0e zlib/1.2.3.4 c-ares/1.7.6-DEV libidn/1.23 libssh2/1.4.0_DEV librtmp/2.2e
  71. Proxy-Connection: Keep-Alive
  72. </proxy>
  73. </verify>
  74. </testcase>