test1321 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. FETCH
  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. imap: sure hit me
  17. </connect>
  18. <data>
  19. From: me@somewhere
  20. To: fake@nowhere
  21. body
  22. --
  23. yours sincerely
  24. </data>
  25. <datacheck>
  26. From: me@somewhere
  27. To: fake@nowhere
  28. body
  29. --
  30. yours sincerely
  31. </datacheck>
  32. </reply>
  33. #
  34. # Client-side
  35. <client>
  36. <server>
  37. imap
  38. http-proxy
  39. </server>
  40. <features>
  41. http
  42. </features>
  43. <name>
  44. IMAP FETCH tunneled through HTTP proxy
  45. </name>
  46. <command>
  47. 'imap://imap.1321:%IMAPPORT/1321/;UID=1' -u user:secret -p -x %HOSTIP:%PROXYPORT
  48. </command>
  49. </client>
  50. #
  51. # Verify data after the test has been "shot"
  52. <verify>
  53. <strip>
  54. ^User-Agent: curl/.*
  55. </strip>
  56. <protocol>
  57. A001 CAPABILITY
  58. A002 LOGIN user secret
  59. A003 SELECT 1321
  60. A004 FETCH 1 BODY[]
  61. A005 LOGOUT
  62. </protocol>
  63. <proxy>
  64. CONNECT imap.1321:%IMAPPORT HTTP/1.1
  65. Host: imap.1321:%IMAPPORT
  66. 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
  67. Proxy-Connection: Keep-Alive
  68. </proxy>
  69. </verify>
  70. </testcase>