Hi 

sorry, andre, please excuse, did not see your name on the web page. Thank you 
very much for the work done!

Thank you for the offer of the new stack - please send the new stack to [EMAIL 
PROTECTED]


I have added a modification in the quotes stack script perhaps you are 
interested in:

on httpd_gethtml
put uniDecode(unicodeText of field "quotes" of stack "quotes","UTF8") into 
tquote
put uniDecode(unicodeText of field "template" of stack "quotes","UTF8") into 
template
replace "%QUOTE%" with tquote in template
replace "%TODAY%" with the date in template
set the http_result of stack "quotes" to template
end httpd_gethtml

The unidecode line makes this runrev webserver fully unicode-compliant even for 
rtf and extended languages as just tested at 
http://84.145.233.214:8800/quotes.html. Better than native runrev fields itself 
;-)
Bye, Franz

Franz Böhmisch

[EMAIL PROTECTED]
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537


Original Message        processed by David InfoCenter 
Subject: Re: serving mp3 with httpd stack of soapdog - how to modify the server 
header (17-Jul-2006 16:50)
From:    Andre Garzia <[EMAIL PROTECTED]>
To:      [email protected]


Franz,

Hello, err... I am the soapdog. :-)

That stack is ancient, I have better code now that will probably be 
able to serve mp3 out of the box. Since I am rebuilding my page the 
new code is not available yet but I can send it to your email. Do you want me 
to send it to you?

it's easier in the new server to deal with all kinds of mime types. 
Also remember mp3 files must be read with binfile: and not file:.

Cheers
andre

On Jul 17, 2006, at 7:21 AM, [EMAIL PROTECTED] wrote:

> Hi
> Using the http daemon of soapdog at
> http://homepage.mac.com/soapdog/rev/revhttpd.html
> I tried to modify this stack for serving mp3 and wav sounds from a 
> local webserver.
>
> The modification in the stack script:
> if a file with extension mp3 has been called with an URL like
> http://127.0.0.1:8080/quotes.mp3
> then serve the content of the property mp3data of this stack.
> Before this command I have included the mp3data in the stack
> set the mp3data of this stack to URL "binfile:c:/test.mp3"
>
> case "mp3"
> put the mp3data of stack "quotes" into mp3file
> --put "Content-type: audio/x-mp3" & lf & lf & the mp3data of stack 
> "quotes" into mp3file
> write mp3file to socket SocketID
> close socket socketID
> pass serverread
> break
> The browser interprets the data sent as text and shows the binary 
> file in the web browser like an html page.
> I tried to put the HTML content-type before the data like in apache > and 
> perl - but because this is a feature of the apache server, this > was 
> nonsense - the line will be served to the browser of course.
> My Question: How can I change the script to serve the binary data 
> of the mp3 file in a way the browser can get it as a mp3 file and 
> play it as a sound? How can I implement the header like apache 
> does? (The same would be interesting for serving swf).
> Regards,
> Franz Böhmisch
> [EMAIL PROTECTED]
> _______________________________________________
> use-revolution mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

To: [email protected]
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to