Android 2.3的没有通过cookie信息对HTML5音频标签Get请求 [英] Android 2.3 doesn't pass cookie information for html5 audio tag Get request

查看:111
本文介绍了Android 2.3的没有通过cookie信息对HTML5音频标签Get请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Android 2.3的HTML5音频标签从一个安全的网站,以播放媒体文件,但我注意到,对GET请求,Android 2.3的心不是通过cookie信息从浏览器向服务器造成 HTTP / 1.1 302临时移动 响应从服务器返回的重新认证登录页面。我试图在IOS移动浏览器,Chrome浏览器,Safari浏览器相同的请求,IE和cookie信息发送的每个请求。什么更令人费解的是也是在img标签的要求,cookie信息发送的Andr​​oid浏览器。

I am trying to play a media file using html5 audio tag in android 2.3 from a secure site but I notice that on the Get request, android 2.3 isnt passing the cookie information from the browser to the server causing a 'HTTP/1.1 302 Moved Temporarily' response from the server back to the login page for reauthentication. I tried the same request on IOS mobile browser, chrome, safari, IE and the cookie information is sent on each request. Whats more puzzling is also that on img tag request, the cookie information is sent on the android browser.

我的问题是,有没有人知道,如果这仅仅是在Android 2.3音频标签实现的bug还是我失去了一个参数,以允许cookie信息要传递?

My question is, is anyone aware if this is just an implementation bug on android 2.3 audio tag or am I missing an parameter to allow the cookie information to be passed?

感谢您的帮助

推荐答案

现在的问题是,浏览器本身并不发送的音频标签的要求,而是代表这stagefright。可悲的是Stagefright(在Android 2.3)根本不发送任何饼干...

The problem is, that the browser doesn't send the request for the audio-tag by itself but instead delegates this to stagefright. Sadly Stagefright (on Android 2.3) doesn't send any cookies at all...

这篇关于Android 2.3的没有通过cookie信息对HTML5音频标签Get请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆