As far as I know, you can transfer binary files using the HTTP protocol. But HTTP is a text protocol, the standard HTTP response frame is as follows:
HTTP/1.1 200 OK Date: Wed, 23 May 2012 22:38:34 GMT Content-Length: 438 Content-Type: text/html; charset=UTF-8 Here goes content
If so, how should the binary be encoded in this frame? What is Content-Type? Is base64 encoded content the same as POP3 attachments? Or is it raw data (can you not cause problems if this is so?)
source share