2011-01-09, 06:55
I'm currently not able to stream a video in XBMC due to a missing HTTP 'Referer' header.
The file is:
http://openmedia.yale.edu/cgi-bin/open_y...011607.mov
It requires a Referer header in order to return the video stream, see below:
Without the referer header:
With referer:
How can I remedy this situation? Can I add a custom HTTP header somehow? Should I download the video myself and play from disk?
Thanks,
Jon
xbmc.log
The file is:
http://openmedia.yale.edu/cgi-bin/open_y...011607.mov
It requires a Referer header in order to return the video stream, see below:
Without the referer header:
Code:
$ curl -i "http://openmedia.yale.edu/cgi-bin/open_yale/media_downloader.cgi?file=/courses/spring07/astr160/mov/astr160_01_011607.mov"
HTTP/1.1 200 OK
Date: Sun, 09 Jan 2011 04:52:02 GMT
Server: Apache/2.2.3 (Red Hat)
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
No file available for download.
With referer:
Code:
$ curl -I -e "http://oyc.yale.edu/astronomy/frontiers-and-controversies-in-astrophysics/content/downloads" "http://openmedia.yale.edu/cgi-bin/open_yale/media_downloader.cgi?file=/courses/spring07/astr160/mov/astr160_01_011607.mov"
HTTP/1.1 200 OK
Date: Sun, 09 Jan 2011 04:52:57 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Disposition: attachment; filename="astr160_01_011607.mov"
Connection: close
Content-Type: application/octet-stream
How can I remedy this situation? Can I add a custom HTTP header somehow? Should I download the video myself and play from disk?
Thanks,
Jon
xbmc.log