bad http request sent in mmsh.c

Bug #460653 reported by Andrea
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libmms
New
Undecided
Unassigned

Bug Description

I've found a potential problem in the HTTP request sent in mmsh.c

Trying to download this file

mms://rntlivewm.rai.it/rai/raifiction/commissariomontalbano/montalbano_lavocedelviolino.wmv

I get (enabling the debug output)

mmst_valid_proto
try to connect to rntlivewm.rai.it on port 1755
***LOG:*** -- failed to connect 'rntlivewm.rai.it'
mmsh_valid_proto
try to connect to rntlivewm.rai.it on port 80
connected
first http request
send_command:
GET mms://rntlivewm.rai.it:80/rai/raifiction/commissariomontalbano/montalbano_lavocedelviolino.wmv HTTP/1.0
Accept: */*
User-Agent: NSPlayer/4.1.0.3856
Host: rntlivewm.rai.it:80
Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0
Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}
Connection: Close

As you can see the GET command still contains the initial part of the address, which should not be there (i.e.: mms://rntlivewm.rai.it:80). The answer then is >HTTP/1.0 503 Service Unavailable<

The problem seems to be in the way mmsh_connect() initializes *this.
It uses gnet_uri_get_string() while a more simple uri->path works fine. But I am not sure what are the implications of changing this elsewhere.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.