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-----

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

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

[the stream here]
Received on Tuesday, 22 August 1995 15:03:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:18 GMT