开发者

Android 2.3 doesn't pass cookie information for html5 audio tag Get request

开发者 https://www.devze.com 2023-02-18 05:24 出处:网络
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 s

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.

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?

thanks for any help


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...


I am experiencing the same problem. In my case I see a specific User-Agent:

User-Agent: HTC Streaming Player htc_wwe / 1.0 / htc_ace / 2.3.3

So, maybe, playing is performed by device player, that does not send browser cookies.

0

精彩评论

暂无评论...
验证码 换一张
取 消