Page 1 of 1

HTTP Redirection

Posted: 30 Aug 2009 09:37
by kranthi117
Hi all,
By default VLC Ignores insecure HTTP redirection to non HTTP protocol
how do i override this ?

Re: HTTP Redirection

Posted: 31 Aug 2009 17:37
by ivoire
That's not possible, but an option can be added if you need it.
Why do you need to follow such a redirection ?

Re: HTTP Redirection

Posted: 31 Aug 2009 19:01
by kranthi117
cant I do that for http://localhost even ? If I am correct this was a default action for < 0.5.2
http://www.videolan.org/developers/vlc/NEWS
http://mailman.videolan.org/pipermail/v ... 18214.html

Any ways what I want to do is,
$ vlc http://localhost/test.php --repeat
where http://localhost/test.php redirects to file:///file1.mp3 or file:///file2.mp3 ...(the file name keeps on changing....)

I found a different workaround (and this is working fine), but that is not exactly what I want to do...
<?php
$path = 'file1.mp3';
header('Content-type: audio/mpeg');
header('Content-length: ' . filesize($path));
print file_get_contents($path);
?>

Re: HTTP Redirection

Posted: 02 Sep 2009 09:20
by ivoire
I can add an option for this (even I don't really like to add options like this :)). Anyway this option will be available (if made) for the release of the 1.1 branch which is not planned for the moment.
This meens that you won't be able to do it until the release (or if you compile your own vlc).

Best regards