• Ian Zimmerman's avatar
    input/curl: enable CURLOPT_NETRC · 27aa34d4
    Ian Zimmerman authored
    I wanted mpd to play a mp3 stream from a music website.  The stream is
    only available to subscribers, which restriction is enforced through
    normal http authentication.  However, the URL I get from the website
    is not the final URL of the stream, but a generic URL which points to
    the real one through a redirect (code 301).  Thus, I cannot predict
    the final URL, and so I cannot use the username:password hack to force
    the authentication, and mpd (libcurl on mpds behalf) fails to grab the
    stream.
    
    libcurl allows the option CURLOPT_NETRC to be set and then the
    credentials can be stored in the good old .netrc file (in this case it
    would be ~mpd/.netrc, of course).  But mpd doesn't set this option.  I
    think it should.
    27aa34d4
Name
Last commit
Last update
..
archive_input_plugin.c Loading commit data...
archive_input_plugin.h Loading commit data...
cdio_paranoia_input_plugin.c Loading commit data...
cdio_paranoia_input_plugin.h Loading commit data...
curl_input_plugin.c Loading commit data...
curl_input_plugin.h Loading commit data...
ffmpeg_input_plugin.c Loading commit data...
ffmpeg_input_plugin.h Loading commit data...
file_input_plugin.c Loading commit data...
file_input_plugin.h Loading commit data...
mms_input_plugin.c Loading commit data...
mms_input_plugin.h Loading commit data...
rewind_input_plugin.c Loading commit data...
rewind_input_plugin.h Loading commit data...