[vlc-devel] Re: vlc: svn commit r19511 (pdherbemont)

Pierre d'Herbemont pdherbemont at free.fr
Wed Mar 28 13:56:51 CEST 2007


On 28 mars 07, at 13:17, Remi Denis-Courmont wrote:

>
>
>
> On Wed, 28 Mar 2007 12:26:05 +0200 (CEST), Subversion daemon  
> <svn at videolan.org> wrote:
>> r19511 | pdherbemont | 2007-03-28 12:26:05 +0200 (Wed, 28 Mar  
>> 2007) | 2
>> lines
>> Changed paths:
>>    M /trunk/modules/access/http.c
>>
>> http Access: Make sure we handle redirection that don't include  
>> the server
>> name.
>
> This is incorrect.
>
> "The Location response-header field is used to redirect the  
> recipient to a location other than the Request-URI for completion  
> of the request or identification of a new resource. (...) The field  
> value consists of a single absolute URI."
>
> If it starts with a /, you are being redirected to a local file,  
> and we purposedly forbade that because of security concerns.

So let's say it's for compatibility: YouTube does that.

From:
feed://youtube.com/rss/global/recently_added.rss

$ curl http://youtube.com/v/UnFpkEAWzIQ.swf -i
HTTP/1.1 303 See Other
Date: Wed, 28 Mar 2007 11:56:45 GMT
Server: Apache
Cache-Control: no-cache
Location: /p.swf?video_id=UnFpkEAWzIQ&eurl=&iurl=http%3A// 
img.youtube.com/vi/UnFpkEAWzIQ/2.jpg&t=OEgsToPDskLgV9DFykxDhWcILQB6f-IA
Transfer-Encoding: chunked
Content-Type: text/plain


Pierre.

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list