Re: can multi-content-type in a message?

On Tue, 22 Aug 1995 wrote:

> I want to program a cgi to transfer a piece of audio together with a text/html
> back to the browser. The audio can be a explanation to the file or even a some
> music. I need it because the file is in English and the audio explanation is
> in Chinese, and the audio should be immediately played without a user to click.
> So, can I transfer different types of contents in a single message? From the 
> http draft I can see no hint whether it is possible or impossible.
> Thanks!

I think you should be able to do that using a Content-Type: multipart/mixed

the output for your cgi should look like this:

[http server headers]
Content-Type: multipart/mixed;border=ThisRandomString-----

Content-Type: text/html;version=2.0

[your html here]
Content-Type: audio/au (or whatever it is)

[the stream here]

Received on Tuesday, 22 August 1995 15:03:50 UTC