[9001] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

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

daemon@ATHENA.MIT.EDU (Paul Williams)
Tue Aug 22 15:06:52 1995

Date: Tue, 22 Aug 1995 12:03:25 -0700 (PDT)
From: Paul Williams <pcw@hooked.net>
To: wqf@uestc.edu.cn
Cc: www-talk@w3.org
In-Reply-To: <9508220247.AA02554@uestc3.uestc.edu.cn>
Resent-From: www-talk@w3.org

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]


home help back first fref pref prev next nref lref last post