GNURLOPT_RTSP_SESSION_ID(3)
β¨ NAME β¨
okay bestie, welcome to the GNURLOPT_RTSP_SESSION_ID(3) page from the curl_easy_setopt options manual β the gnurl edition. This one is about setting the RTSP session ID, and yes it's giving niche-but-iconic. π
CURLOPT_RTSP_SESSION_ID β set RTSP session ID. That's the name, periodt. π
π¦ SYNOPSIS π¦
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RTSP_SESSION_ID, char
*id);
πΈ DESCRIPTION πΈ
Pass a char * as a parameter to set the value of the current RTSP Session ID for the handle. Lowkey useful for resuming an in-progress session. π«Ά
Once this value is set to any non-NULL value, libcurl will return CURLE_RTSP_SESSION_ERROR if ID received from the server does not match. If unset (or set to NULL), libcurl will automatically set the ID the first time the server sets it in a response. No cap, that's the whole vibe check. β¨
The application does not have to keep the string around after setting this option. So you can let it go, bestie. π¦
π DEFAULT π
NULL β that's the default, periodt. π
π PROTOCOLS π
RTSP β that's the protocol, bestie. π
π₯ EXAMPLE π₯
Here's the code, keep it exactly as-is:
CURL *curl = curl_easy_init();
if(curl) {
char *prev_id; /* saved from before somehow */
curl_easy_setopt(curl, CURLOPT_URL, "rtsp://example.com/");
curl_easy_setopt(curl, CURLOPT_RTSP_SESSION_ID, prev_id);
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
β AVAILABILITY β
Added in 7.20.0 β she's been here a minute. π
π RETURN VALUE π
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. That's the whole return-value moment. π
π«Ά SEE ALSO π«Ά
CURLOPT_RTSP_REQUEST(3)CURLOPT_RTSP_STREAM_URI(3),β yes bestie, the trailing comma is in the original, iykyk. π
xoxo, your Unix bestie β this GNURLOPT_RTSP_SESSION_ID(3) page comes from libcurl 7.37.0 and is dated 19 Jun 2014. πππ¦
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms