[MPlayer-users] Playing an URL with special characters, charset problem

Raimund Steger rs at mytum.de
Tue Jan 11 01:49:39 CET 2011


Hi,

upon trying to reproduce this out of interest I notice that mplayer 
*does* seem to urldecode the requestUri before writing it to the HTTP 
request. I can confirm this with tcpdump as well as by checking 
Apache's access.log of the machine I run it against.

E. g. when testing it like so:

mplayer 'http://steg0.eu/testing/x%E4/pie.mp4'

access.log reads:


87.184.161.204 - - [11/Jan/2011:00:03:52 +0000] "GET 
/testing/x\xe4/pie.mp4 HTTP/1.0" 200 44841240 "-" "MPlayer SVN-r32760-4.5.2"


While this might not be a great problem with current Web servers, AFAIK 
requestUris should be 7-bit, hence urlencoding. (RFC3986: "Once 
produced, a URI is always in its percent-encoded form.")
This is how Firefox issues the request:


2a01:170:1046:0:221:28ff:fe14:b097 - - [10/Jan/2011:23:59:37 +0000] "GET 
/testing/x%E4/pie.mp4 HTTP/1.1" 404 319 "-" "Mozilla/5.0 (X11; U; SunOS 
i86pc; en-US; rv:1.9.2.6) Gecko/20100627 Firefox/3.6.6"


(Firefox connects through IPv6 while mplayer falls back to IPv4, this is 
unrelated.)

I understand that things like extracting passwords out of URIs require 
parts to be decoded, but the current implementation seems to go a little 
overboard...

Raimund



Reimar Döffinger wrote:
> On Mon, Jan 10, 2011 at 08:02:59PM +0100, Reimar Döffinger wrote:
>> On Mon, Jan 10, 2011 at 11:58:41PM +0900, Arthur Helfstein Fragoso wrote:
>>> I tried to detail the problem as much as I could, so if it's not
>>> enough, please tell me what else I need to inform.
>> About the actual issue.
>> Because what you think is the issue isn't it.
>> The real issue is that Google once again implemented their own web server,
>> and time and again they prove to be completely incompetent at that.
>> Please compare:
>> -user-agent 'Mozilla'
>> returned file says "hao"
>> -user-agent 'Mozilla/5'
>> no sound at all
>> -user-agent 'Mozilla/5.0'
>> full file.
> 
> Can't reproduce the "no sound" case any more, might have been a problem
> with my network connection.
> Let me merge my suggestion for a fix and my opinion on it in one statement: Use
> -user-agent 'Mozilla/666'
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users



More information about the MPlayer-users mailing list