IMAP FETCH HTTP HTTP CONNECT HTTP proxy # # Server-side HTTP/1.1 200 Mighty fine indeed imap: sure hit me From: me@somewhere To: fake@nowhere body -- yours sincerely From: me@somewhere To: fake@nowhere body -- yours sincerely # # Client-side imap http-proxy http proxy IMAP FETCH tunneled through HTTP proxy 'imap://imap.1321:%IMAPPORT/1321/;MAILINDEX=1' -u user:secret -p -x %HOSTIP:%PROXYPORT # # Verify data after the test has been "shot" ^User-Agent: curl/.* A001 CAPABILITY A002 LOGIN user secret A003 SELECT 1321 A004 FETCH 1 BODY[] A005 LOGOUT CONNECT imap.1321:%IMAPPORT HTTP/1.1 Host: imap.1321:%IMAPPORT 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 Proxy-Connection: Keep-Alive