cURL / Mailing Lists / curl-users / Single Mail

curl-users

How can I parse the entire RTSP response header?

From: Madhura Suresh <Madhura.Suresh_at_mathworks.com>
Date: Mon, 3 Oct 2016 18:24:38 +0000

Hi-

I am using libcurl setopt to get data from an RTSP stream.

To set options, I use:

    curl_setopt( CURLOPT_RTSP_STREAM_URI, uri);
    curl_setopt( CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS);

In Wireshark, I see this response RTSP packet.

Frame 1581: 205 bytes on wire (1640 bits), 205 bytes captured (1640 bits) on interface 0
Ethernet II, Src: CiscoInc_94:ca:41 (54:7f:ee:94:ca:41), Dst: Universa_65:9d:d6 (6c:0b:84:65:9d:d6)
Internet Protocol Version 4, Src: 88.208.79.177, Dst: 172.28.23.98
Transmission Control Protocol, Src Port: 554 (554), Dst Port: 64184 (64184), Seq: 1, Ack: 106, Len: 151
Real Time Streaming Protocol
    Response: RTSP/1.0 200 OK\r\n
        Status: 200
    CSeq: 1\r\n
    Date: Sat, 04 Jun 2016 13:25:39 GMT\r\n
   Public: OPTIONS, DESCRIBE, SET_PARAMETER,GET_PARAMETER, SETUP, TEARDOWN, PLAY, PAUSE\r\n
    \r\n

I can get the response code as 200 - how can I get access to the options. I am trying to parse it to find GET_PARAMTER.

Thanks,
Madhura

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-10-03