• 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
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
valgrind.suppressions Loading commit data...