mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
curlhttpsrc: Add curl anyauth option
Add curl anyauth option to support http request to endpoints not using only basic authentication (as default in curl). Also aligning with curlhttpsink that already uses this option. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3824>
This commit is contained in:
parent
797e94eb6d
commit
88a8d9e8cd
1 changed files with 1 additions and 0 deletions
|
@ -1116,6 +1116,7 @@ gst_curl_http_src_create_easy_handle (GstCurlHttpSrc * s)
|
||||||
gst_curl_setopt_str (s, handle, CURLOPT_NOPROXY, s->no_proxy_list);
|
gst_curl_setopt_str (s, handle, CURLOPT_NOPROXY, s->no_proxy_list);
|
||||||
gst_curl_setopt_str (s, handle, CURLOPT_PROXYUSERNAME, s->proxy_user);
|
gst_curl_setopt_str (s, handle, CURLOPT_PROXYUSERNAME, s->proxy_user);
|
||||||
gst_curl_setopt_str (s, handle, CURLOPT_PROXYPASSWORD, s->proxy_pass);
|
gst_curl_setopt_str (s, handle, CURLOPT_PROXYPASSWORD, s->proxy_pass);
|
||||||
|
gst_curl_setopt_generic (s, handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
|
||||||
|
|
||||||
for (i = 0; i < s->number_cookies; i++) {
|
for (i = 0; i < s->number_cookies; i++) {
|
||||||
gst_curl_setopt_str (s, handle, CURLOPT_COOKIELIST, s->cookies[i]);
|
gst_curl_setopt_str (s, handle, CURLOPT_COOKIELIST, s->cookies[i]);
|
||||||
|
|
Loading…
Reference in a new issue