[Voiceglue] Fwd: Propagating HTTP session to <audio> tag requests

Alarcón Carlos carlos.alarcon at tyven.com
Fri Feb 6 14:53:33 EST 2009


Probably it is not what you need but ..
wget <url> -O <filename>

this command saves the requested <url> as the given <filename>


Regards


El 06/02/2009, a las 20:28, Archie Cobbs escribió:

> Resending due to previous email delivery problems...
>
> -Archie
>
> ---------- Forwarded message ----------
> From: Archie Cobbs <archie at dellroad.org>
> Date: Thu, Feb 5, 2009 at 11:10 AM
> Subject: Propagating HTTP session to <audio> tag requests
> To: General discussion about voiceglue <voiceglue at voiceglue.org>
>
>
> When voiceglue downloads an audio file on behalf of an <audio> tag,  
> which is done via wget, it does not propagate any cookies  
> associated with the containing VXML document's HTTP session.
>
> With wget, cookies can be configured easily using the --load- 
> cookies command line flag. So one half of solving this problem is  
> easy. However, I haven't looked into how to extract the cookies  
> from whatever "web browser" voiceglue is using to download the VXML  
> files.
>
> This matters to us because we are dynamically generating audio  
> files at runtime (pulling them from a a database), and we need to  
> associate these requests with the same HTTP session that is getting  
> the VXML documents for security reasons.
>
> Because of the lack of cookie propagation, we are using URL- 
> rewriting so end up with tags like this in our VXML:
>
>    <audio src="/ivr/audio.jsp;jsessionid=KjJDSJjdj2Jd?msgid=123456">
>
> This almost works :-) The problem now is that when wget saves the  
> file, the name of the file has the jsessionid part stripped out (in  
> the above example, the filename ends up being "audio.jsp? 
> msgid=123456"). I assume this is a "feature" of wget. But the  
> result is that voiceglue cannot find the file because of the name  
> change, so the audio doesn't play.
>
> So consider this a two-part bug report:
> (Short term) A workaround is needed for wget's stripping of the  
> jsessionid from the audio URL
> (Long term) Propagate cookies associated with the session to wget  
> when downloading audio files
> Thanks,
> -Archie
>
> -- 
> Archie L. Cobbs
>
>
>
>
> -- 
> Archie L. Cobbs
>
> _______________________________________________
> Voiceglue mailing list
> Voiceglue at voiceglue.org
> http://www.voiceglue.org/mailman/listinfo/voiceglue

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.voiceglue.org/pipermail/voiceglue/attachments/20090206/31eb55ff/attachment.html 


More information about the Voiceglue mailing list