W3C home > Mailing lists > Public > www-talk@w3.org > July to August 1995

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

From: Paul Williams <pcw@hooked.net>
Date: Tue, 22 Aug 1995 12:03:25 -0700 (PDT)
To: wqf@uestc.edu.cn
Cc: www-talk@w3.org
Message-Id: <Pine.BSI.3.91.950822115943.11156B-100000@also.hooked.net>
On Tue, 22 Aug 1995 wqf@uestc.edu.cn 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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:57 UTC