test1321 994 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. proxy
  43. </features>
  44. <name>
  45. IMAP FETCH tunneled through HTTP proxy
  46. </name>
  47. <command>
  48. 'imap://imap.%TESTNUMBER:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret -p -x %HOSTIP:%PROXYPORT
  49. </command>
  50. </client>
  51. #
  52. # Verify data after the test has been "shot"
  53. <verify>
  54. <protocol>
  55. A001 CAPABILITY
  56. A002 LOGIN user secret
  57. A003 SELECT %TESTNUMBER
  58. A004 FETCH 1 BODY[]
  59. A005 LOGOUT
  60. </protocol>
  61. <proxy>
  62. CONNECT imap.%TESTNUMBER:%IMAPPORT HTTP/1.1
  63. Host: imap.%TESTNUMBER:%IMAPPORT
  64. User-Agent: curl/%VERSION
  65. Proxy-Connection: Keep-Alive
  66. </proxy>
  67. </verify>
  68. </testcase>