test1319 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. </features>
  45. <name>
  46. POP3 fetch tunneled through HTTP proxy
  47. </name>
  48. <command>
  49. pop3://pop.1319:%POP3PORT/1319 -p -x %HOSTIP:%PROXYPORT -u user:secret
  50. </command>
  51. </client>
  52. #
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. <strip>
  56. ^User-Agent:
  57. </strip>
  58. <protocol>
  59. CAPA
  60. USER user
  61. PASS secret
  62. RETR 1319
  63. QUIT
  64. </protocol>
  65. <proxy>
  66. CONNECT pop.1319:%POP3PORT HTTP/1.1
  67. Host: pop.1319:%POP3PORT
  68. 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
  69. Proxy-Connection: Keep-Alive
  70. </proxy>
  71. </verify>
  72. </testcase>