The attached patch files enable RTSP authentication support. This is accomplished by adding the same call to Curl_http_output_auth() in Curl_rtsp() that is already in Curl_http(). Code was also added to Curl_rtsp() to output the resulting ‘Authorization’ header. Furthermore, a conditional check was added to Curl_http_readwrite_headers() to detect the special case where an RTSP DESCRIBE request fails to return the SDP in the response body due to a 401 Unauthorized error.
Authentication must first be enabled with ‘CURLOPT_HTTPAUTH'. The 'username' and 'password' can either be included in the url: 'rtsp://username:password@address:port/' or set via 'CURLOPT_USERPWD'.
0001-Curl_rtsp-Added-call-to-Curl_http_output_auth-to-set.patch
Description: Binary data
0002-Curl_http_readwrite_headers-Added-RTSP-conditional-c.patch
Description: Binary data
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
