cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-3067817 ] rtsp protocol not working

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 21 Sep 2010 18:27:30 +0000

Bugs item #3067817, was opened at 2010-09-16 11:52
Message generated for change (Comment added) made by dfandrich
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3067817&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: RTSP
Group: bad behaviour
Status: Open
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Lady HaHa (ladyhahaha)
Assigned to: Daniel Stenberg (bagder)
Summary: rtsp protocol not working

Initial Comment:
# I can play the file just fine.
C:\>"C:\Programs\Media Player Classic\mplayerc.exe" rtsp://od2.rte.ie/2010/0
915/15092010203000-lyrc-thelyricconcert.ra

C:\>curl rtsp://od2.rte.ie/2010/0915/15092010203000-lyrc-thelyricconcert.ra
curl: (7) couldn't connect to host

C:\>curl -V
curl 7.21.1 (i386-pc-win32) libcurl/7.21.1 OpenSSL/0.9.8o zlib/1.2.5 libidn/1.18
 libssh2/1.2.7
Protocols: dict file ftp ftps http https imap imaps ldap pop3 pop3s rtsp scp sft
p smtp smtps telnet tftp
Features: AsynchDNS IDN Largefile NTLM SSL SSPI libz

----------------------------------------------------------------------

>Comment By: Dan Fandrich (dfandrich)
Date: 2010-09-21 11:27

Message:
The RealChallenge1 header indicates that the server uses some kind of
proprietary Real Server client authentication protocol that libcurl doesn't
support.

----------------------------------------------------------------------

Comment By: Lady HaHa (ladyhahaha)
Date: 2010-09-21 11:11

Message:
C:\>curl -v
rtsp://od2.rte.ie:80/2010/0915/15092010203000-lyrc-thelyricconcert.ra
* About to connect() to od2.rte.ie port 80 (#0)
* Trying 89.207.56.12... connected
* Connected to od2.rte.ie (89.207.56.12) port 80 (#0)
> OPTIONS * RTSP/1.0

I also found this:
http://od2.rte.ie/viewsource/template.html?nuyhtg81w8y6jne3E62yj657Agjws77ma5E60l67E6wvr1E6vaD5ng9zxx4f6gzbng9ydo5gh75mngqzwB1epcx4p9v10Ebhco193fxlto581Eo4n8pcx4p9v10Ebhav193fCzf6r4lmc4E6sj57h6vluBrepcx4p9v10Ebhco193fxCd957dCb4E6o46k3cba9i4ei1fj4etnduafeEvgr4slDzm71e7cm8
> CSeq: 1
> User-Agent: curl/7.21.1 (i386-pc-win32) libcurl/7.21.1 OpenSSL/0.9.8o
zlib/1.2.5 libidn/1.18 libssh2/1.2.7
>
< RTSP/1.0 200 OK
< CSeq: 1
< Date: Tue, 21 Sep 2010 18:10:03 GMT
< Server: Helix Server Version 11.1.7.3406 (linux-rhel4-i686) (RealServer
compat
ible)
< Public: OPTIONS, DESCRIBE, ANNOUNCE, PLAY, PAUSE, SETUP, GET_PARAMETER,
SET_PA
RAMETER, TEARDOWN
< TurboPlay: 1
< RealChallenge1: c1d83054187bfedc1bf3b86945a1c188
< StatsMask: 8
<
* Connection #0 to host od2.rte.ie left intact
* Closing connection #0

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-09-21 11:06

Message:
That makes me suspect it isn't talking RTSP at all then. To talk RTSP over
port 80 instead, use the URL like:

rtsp://rmv8.bbc.net.uk:80/radio4/tue1630.ra

(with an inserted :80 after the host name)

----------------------------------------------------------------------

Comment By: Lady HaHa (ladyhahaha)
Date: 2010-09-21 10:58

Message:
I'm seeing a connection to: * media4.rte.ie:80
                                                  *
rm12.cwwtf.bbc.co.uk:80

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-09-21 10:47

Message:
so you can't connect to port 554 on that host. How did you get that URL in
the first place? if mplayer works on that same URL, what TCP port does it
use for that? (can be figured out using wireshark or similar)

----------------------------------------------------------------------

Comment By: Lady HaHa (ladyhahaha)
Date: 2010-09-21 10:13

Message:
C:\>curl -v rtsp://rmv8.bbc.net.uk/radio4/tue1630.ra
* About to connect() to rmv8.bbc.net.uk port 554 (#0)
* Trying 212.58.251.76... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host

C:\>telnet rmv8.bbc.net.uk 554
Connecting To rmv8.bbc.net.uk...Could not open connection to the host, on
port 5
54: Connect failed

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-09-20 05:22

Message:
That output shows that the server rejects connections on port 554 which is
the default RTSP port and thus curl cannot connect to it.

7 is the return code for "can't connect to host".

This is not a bug. This is a server not allowing connections.

----------------------------------------------------------------------

Comment By: Lady HaHa (ladyhahaha)
Date: 2010-09-20 03:35

Message:
C:\>curl -v
rtsp://od2.rte.ie/2010/0915/15092010203000-lyrc-thelyricconcert.ra
* About to connect() to od2.rte.ie port 554 (#0)
* Trying 89.207.56.12... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host

Is there a way to diagnose the problem, what does the "(7)" mean?

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-09-18 14:41

Message:
Thanks for reporting this issue and helping us improve curl and libcurl.

We're awaiting feedback in this issue. Due to this, I have set the state
of this issue to pending and it will automatically get closed later on
unless we get further info.

Please consider answering the outstanding questions or providing the
missing info so that we can proceed to resolve this issue!

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-09-17 14:48

Message:
I just tried this with 7.21.1 (and my 7.21.2-DEV version) on debian and
they both connected and requested the resource fine. I can't reproduce this
problem. Does it always happen for this URL? Does it happen like this for
all RTSP urls?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3067817&group_id=976
Received on 2010-09-21

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET