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

Paul Williams ([email protected])
Tue, 22 Aug 1995 12:03:25 -0700 (PDT)


On Tue, 22 Aug 1995 [email protected] 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-----

ThisRandomString-----
Content-Type: text/html;version=2.0

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

[the stream here]