From: Stephan D. <ste...@gm...> - 2001-11-16 14:18:13
|
On Friday 16 November 2001 10:54, you wrote: > Hi, > > I have two problems with my webkit - app: > > 1. I use the SecurePage + LoginPage from the examples. I made a logout > - link which calls http://path-to-my-app/Main?logout=1. SecurePage > directs me to LoginPage, I log in, but because the URL includes > still the query string ?logout=1, I again get redirected to the > LoginPage. So, how to get rid of the query string. You could delete the "logout" field from your request object before forwarding. But then, the LoginPage page from WebKit/examples seems to ignore the "logout" request field anyway. Actually, if you have a look at line 41 of LoginPage you'll see, that the "logout" field will not be passed on. Did you use the original Scripts or some own version of it? > > 2. I want to let he users listen to on the fly generated wav - > files. I´m using the _action_ - mechanism, and in my callback I > am converting a file to wav (works) and it gets saved to /tmp. But > how do I get this file to the client? I tried to set the > Content-type and Content-disposition as described in the webware > wiki, and then sending the file via self.write(), but when the file > arrives It can´t be played, and when I download it, I get a much > bigger file than on the server which starts: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> <html> > <head> > <title>Answering Machine</title> > <link rel=stylesheet href=homepage.css type=text/css> > </head> > RIFF<E4><D3>^B^@WAVEfmt^P^@^@^@^A^@^A^@@^_^@^@<80>>^@^@^B^@^P^@data<C0> > > and so on, and nothing is played. Any hints? > > I also tried the embed and object tags, but this didn´t help. If you are sending binary data, you shouldn't send out any html. The Request should give back only the http header and the data: ------------------------------------------------------- <Some http header> <binary data> ------------------------------------------------------- your page seems to call something like writeHeader() or a similar function before sending out the .wav data. If this doesn't help, you should provide some more information about your code. Cheers Stephan > > Greetings, Christoph > > _______________________________________________ > Webware-discuss mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webware-discuss |