Skip to content
Snippets Groups Projects
  • Brian J. Murrell's avatar
    fc6b6f45
    download.pl: use curl in preference to wget · fc6b6f45
    Brian J. Murrell authored
    
    Because wget doesn't know how to do Negotiate authentication with a proxy
    and curl does, use curl if it's present. The user is expected to have a
    ~/.curlrc that sets the options necessary for any proxy authentication.
    
    A ~/.curlrc is completely optional however and curl will work in exactly
    the same manner as wget without one.
    
    Signed-off-by: default avatarBrian J. Murrell <brian@interlinx.bc.ca>
    [Jo-Philipp Wich: Rework code to detect curl usability by checking --version,
                      Use vararg style open() to bypass the shell when downloading,
                      Use Text::ParseWords to decompose env vars into arguments]
    Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
    fc6b6f45
    History
    download.pl: use curl in preference to wget
    Brian J. Murrell authored
    
    Because wget doesn't know how to do Negotiate authentication with a proxy
    and curl does, use curl if it's present. The user is expected to have a
    ~/.curlrc that sets the options necessary for any proxy authentication.
    
    A ~/.curlrc is completely optional however and curl will work in exactly
    the same manner as wget without one.
    
    Signed-off-by: default avatarBrian J. Murrell <brian@interlinx.bc.ca>
    [Jo-Philipp Wich: Rework code to detect curl usability by checking --version,
                      Use vararg style open() to bypass the shell when downloading,
                      Use Text::ParseWords to decompose env vars into arguments]
    Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
download.pl 7.95 KiB