QuickTime X do not honor Set-Cookie HTTP header
| Originator: | drodrigueztroitino | ||
| Number: | rdar://7366144 | Date Originated: | 05-Nov-2009 12:24 AM |
| Status: | Open | Resolved: | No |
| Product: | QuickTime | Product Version: | 10.0 (51) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: QuickTime X do not honor the Set-Cookie HTTP header of the response it receives. Steps to Reproduce: 1. Look/create for a HTTP server that sets a cookie for the client with the first request of a HTTP Live Streaming request for the m3u8 file. 2. Point QuickTime X to the URL of that m3u8 file. 3. QuickTime X will request the file, and will ignore all Set-Cookie headers sent by the server. 4. Next requests (to the same m3u8 or to the MPEG segments) do not include the Cookie header with the value provided by the server. Expected Results: QuickTime X should honor the Set-Cookie headers sent by the server. Actual Results: QuickTime X ignores the Set-Cookie headers sent by the server. QuickTime X does send (some) Cookie headers if some other application has received them (for example Safari), but not always: I have two Cookies in Safari for localhost, but Quicktime X only sent one of them (always the same one). Regression: N/A Notes: This is a HTTP conversation between QuickTime X and a local HTTP server. QuickTime start requesting the m3u8 two times (those two are identical, but QuickTime should include a Cookie header in the second one), and finally it starts requesting the MPEG segment. >>>>> GET /v HTTP/1.1 Host: localhost:9393 Range: bytes=0-1 Connection: close User-Agent: Apple Mac OS X v10.6.1 CoreMedia v1.0.0.10B504 Accept: */* Accept-Encoding: identity >>>>> <<<<< HTTP/1.1 200 OK Connection: close Date: Wed, 04 Nov 2009 23:06:12 GMT Content-Type: application/vnd.apple.mpegurl Content-Length: 240 Set-Cookie: rack.session=BAh7BiIGdmkG%0A; path=/ #EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:10 http://localhost:9393/ts/sample_ep_512k-00001.ts #EXTINF:10 http://localhost:9393/ts/sample_ep_512k-00002.ts #EXTINF:10 http://localhost:9393/ts/sample_ep_512k-00003.ts <<<<< >>>>> GET /v HTTP/1.1 Host: localhost:9393 Connection: close User-Agent: Apple Mac OS X v10.6.1 CoreMedia v1.0.0.10B504 Accept: */* >>>>> <<<<< HTTP/1.1 200 OK Connection: close Date: Wed, 04 Nov 2009 23:06:13 GMT Content-Type: application/vnd.apple.mpegurl Content-Length: 240 Set-Cookie: rack.session=BAh7BiIGdmkG%0A; path=/ #EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:10 http://localhost:9393/ts/sample_ep_512k-00001.ts #EXTINF:10 http://localhost:9393/ts/sample_ep_512k-00002.ts #EXTINF:10 http://localhost:9393/ts/sample_ep_512k-00003.ts <<<<< >>>>> GET /ts/sample_ep_512k-00001.ts HTTP/1.1 Host: localhost:9393 Connection: keep-alive User-Agent: Apple Mac OS X v10.6.1 CoreMedia v1.0.0.10B504 Accept: */* >>>>> <<<<< HTTP/1.1 200 OK Connection: close Date: Wed, 04 Nov 2009 23:06:14 GMT Last-Modified: Tue, 03 Nov 2009 21:49:36 GMT Content-Type: text/html Content-Length: 984932 Set-Cookie: rack.session=BAh7AA%3D%3D%0A; path=/ [data] <<<<<
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!