curl / Mailing Lists / curl-users / Single Mail

curl-users

Capturing RTSP data and placing it into a file

From: David Niklas <doark_at_mail.com>
Date: Fri, 5 Oct 2018 12:34:40 -0400

Hello,

At:
https://www.startpage.com/eng/protect-privacy.html
there is a link to:
https://www.startpage.com/eng/futuretense.ram
in the section that reads:
"A search engine that remembers little about its users
RealAudio or MP3
National Public Radio"
I copied the link and pasted it into my terminal. I invoked curl on it
and curl got the link. 2 redirects later I found the actual url of the
data to be:
rtsp://mprrm.publicradio.org/5559/news/futuretense/daily/2006/10/02.rm
I invoked curl and got nothing. I tried again using verbose and then
checking curl's return value.

% curl -v -o 02.rm
'rtsp://mprrm.publicradio.org/5559/news/futuretense/daily/2006/10/02.rm'
% Total % Received % Xferd Average Speed Time Time Time
Current Dload Upload Total Spent Left Speed 0 0 0
0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying
50.31.167.252...
* TCP_NODELAY set
* Connected to mprrm.publicradio.org (50.31.167.252) port 554 (#0)
  0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0> OPTIONS * RTSP/1.0
> CSeq: 1
> User-Agent: curl/7.52.1
>
< RTSP/1.0 200 OK
< CSeq: 1
< Date: Fri, 05 Oct 2018 16:27:44 GMT
< Server: Helix Server Version 11.0.1.1884 (linux-rhel4-i686) (RealServer
compatible) < Public: OPTIONS, DESCRIBE, ANNOUNCE, PLAY, SETUP,
GET_PARAMETER, SET_PARAMETER, TEARDOWN < TurboPlay: 1
< RealChallenge1: e168ed5d0adbf1a6b73cd530101f160d
< StatsMask: 8
<
* Curl_http_done: called premature == 0
  0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0
* Connection #0 to host mprrm.publicradio.org left intact
% echo $?
0
% ls -sh 02.rm
0 02.rm

I am interested in getting the rm data from the rtsp stream, what am I
doing wrong?

Thanks!
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-05