You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dustin Oprea <ae...@blitzeclipse.com> on 2006/03/12 23:00:40 UTC

[users@httpd] How do you send mixed-MIME content?


How can one send HTML content, binary image data, and then more HTML 
content?

I'm trying to cut-out external file use for my database backend.

Dustin


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How do you send mixed-MIME content?

Posted by Nick Kew <ni...@webthing.com>.
On Sunday 12 March 2006 22:00, Dustin Oprea wrote:
> How can one send HTML content, binary image data, and then more HTML
> content?

That's what MIME multipart documents are for.  I don't recollect the number
of the MIME RFC, but I expect google can find it.

I'm not sure what clientside support looks like.  In 1997, Netscape supported 
it natively, but some other browsers would display it in your mailer instead,
and MSIE just invited you to feed it a nice juicy virus.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How do you send mixed-MIME content?

Posted by Alan Little <da...@holotech.net>.
What the heck, I'll take a go at this.

Short answer: sure, anything's *possible*.

Long answer: AFAIK, there is no way to do it directly with Apache, but
I am very far from being an Apache expert. You might be able to do it
with an output filter -- I don't really know much about filters. I
know a way it *could* be done. You could create a rewrite rule so that
all .html requests were passed to a script. The script would read the
.html file, parse it for <IMG> tags, read those files, lump it all
together and send it as a single response.

However, there isn't a browser in the world that would know what to do
with it, unless you've got a custom job on that end. You have to
remember the client in the client-server model.

-- 
Alan Little
Holotech Enterprises

On Sunday, March 12, 2006, 5:00:40 PM, you wrote:



> How can one send HTML content, binary image data, and then more HTML 
> content?

> I'm trying to cut-out external file use for my database backend.

> Dustin


> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org