Repository: Flexget/Flexget

Issue:
Download plugin HTTP auth
### Expected behaviour:

I should be able to provide the download plugin with username and password for basic HTTP auth.

Found this: http://flexget.com/ticket/1046 as only reference through google to basic auth with the download plugin.

Provided config is for madokami, a manga sharing site that requires HTTP auth for download. Presumably, behaviour is identical with any other site that requires basic auth.
### Actual behaviour:

Download plugin does not appear to be using the provided credentials.
### Steps to reproduce:
- Attempt to download from site that requires basic auth
#### Config:

``` yaml
tasks:
  relife:
    rss: 'https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE?t=rss'
    download: '~/media/manga/ReLIFE/'
    accept_all: yes
    set:
      basic_auth_username: foo
      basic_auth_password: bar
```
#### Log:

```
2016-06-17 09:53 DEBUG    manager                       Figuring out config load paths
2016-06-17 09:53 DEBUG    manager                       Found config: /home/chris/.flexget/config.yml
2016-06-17 09:53 DEBUG    manager                       Config file /home/chris/.flexget/config.yml selected
2016-06-17 09:53 DEBUG    manager                       sys.defaultencoding: ascii
2016-06-17 09:53 DEBUG    manager                       sys.getfilesystemencoding: UTF-8
2016-06-17 09:53 DEBUG    manager                       os.path.supports_unicode_filenames: False
There is a FlexGet process already running for this config, sending execution there.
2016-06-17 09:53 DEBUG    manager                       Sending command to running FlexGet process: [u'-L', u'debug', u'execute', u'--tasks', u'relife']
2016-06-17 09:53 DEBUG    cron_env                      Encoding UTF-8 stored
2016-06-17 09:53 DEBUG    util.simple_persistence                 setting key terminal_encoding value 'UTF-8'
2016-06-17 09:53 DEBUG    task          relife          executing relife
2016-06-17 09:53 DEBUG    remember_rej  relife          Task config has changed since last run, purging remembered entries.
2016-06-17 09:53 DEBUG    input_cache   relife          cache name: rss_7d2921b16e3fe20e09254dc71ada468b (has: rss_7d2921b16e3fe20e09254dc71ada468b)
2016-06-17 09:53 VERBOSE  input_cache   relife          Restored 57 entries from cache
2016-06-17 09:53 DEBUG    backlog       relife          0 entries purged from backlog
2016-06-17 09:53 VERBOSE  details       relife          Produced 57 entries.
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE - c0032.0 - Chapter 32 [crunchyroll].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20-%20c0032.0%20-%20Chapter%2032%20%5Bcrunchyroll%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE - c0033.0 - Chapter 33 [crunchyroll].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20-%20c0033.0%20-%20Chapter%2033%20%5Bcrunchyroll%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE - c0034.0 - Chapter 34 [crunchyroll].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20-%20c0034.0%20-%20Chapter%2034%20%5Bcrunchyroll%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE - c0035.0 - Chapter 35 [crunchyroll].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20-%20c0035.0%20-%20Chapter%2035%20%5Bcrunchyroll%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE - c0036.0 - Chapter 36 [crunchyroll].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20-%20c0036.0%20-%20Chapter%2036%20%5Bcrunchyroll%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE - c0037.0 - Chapter 37 [crunchyroll].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20-%20c0037.0%20-%20Chapter%2037%20%5Bcrunchyroll%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE - c131 [batoto].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20-%20c131%20%5Bbatoto%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Ch.132 report132. Am I Wrong [KissManga].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Ch.132%20report132.%20Am%20I%20Wrong%20%5BKissManga%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 001-010.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20001-010.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 011-020.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20011-020.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 021-030.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20021-030.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 031-040.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20031-040.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 041-050.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20041-050.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 051-060.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20051-060.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 051.5 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20051.5%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 061-070.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20061-070.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 071-080.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20071-080.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 081-090.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20081-090.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 091-100.zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20091-100.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 100.1 Halloween Special [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20100.1%20Halloween%20Special%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 101 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20101%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 102 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20102%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 103 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20103%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 104 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20104%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 105 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20105%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 106 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20106%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 107 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20107%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 108 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20108%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 109 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20109%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 110 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20110%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 111 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20111%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 112 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20112%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 113 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20113%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 114 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20114%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 115 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20115%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 116 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20116%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 117 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20117%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 118 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20118%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 119 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20119%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 120 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20120%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 121 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20121%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 122 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20122%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 123 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20123%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 124 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20124%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 125 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20125%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 126 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20126%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 127 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20127%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 128 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20128%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 129 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20129%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 130 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20130%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 131 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20131%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `ReLIFE Report 132 [Whiteout Scans].zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20132%20%5BWhiteout%20Scans%5D.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `[CrunchyDiks] ReLIFE (Volume 01).zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/%5BCrunchyDiks%5D%20ReLIFE%20%28Volume%2001%29.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `[CrunchyDiks] ReLIFE (Volume 02).zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/%5BCrunchyDiks%5D%20ReLIFE%20%28Volume%2002%29.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `[CrunchyDiks] ReLIFE (Volume 03).zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/%5BCrunchyDiks%5D%20ReLIFE%20%28Volume%2003%29.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `[CrunchyDiks] ReLIFE (Volume 04).zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/%5BCrunchyDiks%5D%20ReLIFE%20%28Volume%2004%29.zip)
2016-06-17 09:53 VERBOSE  task          relife          REJECTED: `[CrunchyDiks] ReLIFE (Volume 05).zip` by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/%5BCrunchyDiks%5D%20ReLIFE%20%28Volume%2005%29.zip)
2016-06-17 09:53 DEBUG    urlrewriter   relife          Checking 0 entries
2016-06-17 09:53 VERBOSE  details       relife          Summary - Accepted: 0 (Rejected: 57 Undecided: 0 Failed: 0)
2016-06-17 09:53 DEBUG    util.simple_persistence relife          Flushing simple persistence for task relife to db.
2016-06-17 09:53 DEBUG    util.simple_persistence relife          Flushing simple persistence for task None to db.
```
### Additional information:
- Flexget Version: 1.2.491
- Python Version: 2.7.11
- Installation method: Archlinux AUR package
- OS and version: Archlinux current
- Link to crash log:

Please verify that the following data is present before submitting your issue:

-Paste or link to a paste service ([pastebin](http://pastebin.com/) for example) of relevant config (preferably full config including templates if present. Remember to redact any personal information!
- Paste or link to a paste service of debug level logs of relevant task/s. Use `flexget -L debug execute --tasks <Task_name>`
- Flexget version (Use `flexget -V` to get it).
- Full Python version (`2.7.11` for example). Run `python -V` to get it.
- Installation method (pip, git install, etc.)
- OS and version
- Attach crash log if available



Discussion:
Look into http://flexget.com/wiki/Plugins/formlogin
Thus is not an issue, please use forums for continued discussion. 

Site does not have a login form, but uses basic HTTP auth throughout.

Not being able to provide basic auth credentials to the download plugin is most definitely an issue.

Ok, misunderstood, sorry. 

Try putting the url with auth: `http://user:pass@url`

That might do the trick, but the download URL comes from an RSS feed. I don't know that you can mangle the result like that.

Where does the code for the download plugin live?

https://github.com/Flexget/Flexget/blob/develop/flexget/plugins/output/download.py
Did you try the proposed solution? 

> That might do the trick, but the download URL comes from an RSS feed. I don't know that you can mangle the result like that.

http://flexget.com/wiki/Plugins/rss#Authentication

Rss plugin has an auth option, it'll add the basic auth to the created entries as well.

The RSS feed of this site doesn't require auth (oddly), but I added the auth info to the rss entry anyway. The download phase fails just like before, with HTTP 401.

The task looks like this now:

```
  relife:
    rss:
      url: 'https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE?t=rss'
      username: mkaito
      password: foobar
    accept_all: yes
    download: '~/media/manga/ReLIFE_/'
```

Note: not actual password, in case you want to try it.

Try it like I wrote: `http://user:pass@url`

Tried:

```
  relife:
    rss:'https://mkaito:foobar@manga.madokami.com/Manga/R/RE/RELI/ReLIFE?t=rss'
    accept_all: yes
    download: '~/media/manga/ReLIFE_/'
```

With the result (snip):

```
2016-06-30 02:02 VERBOSE  task          relife          REJECTED: `[CrunchyDiks] ReLIFE (Volume 01).zip` by retry_failed plugin because has already failed 4 times in the past. (failure reason: Network error during request: 401 Client Error: Unauthorized for url: https://manga.madokami.al/Manga/R/RE/RELI/ReLIFE/%5BCrunchyDiks%5D%20ReLIFE%20%28Volume%2001%29.zip)
```

Presumably because the download URI comes from inside the feed, which does not contain the username and password.

Try resetting failed entries first 

Did reset failed entries, and tried again:

```
2016-07-02 02:51 WARNING  download      relife          RequestException 401 Client Error: Unauthorized for url: https://manga.madokami.al/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20108%20%5BWhiteout%20Scans%5D.zip, while downloading https://manga.madokami.com/Manga/R/RE/RELI/ReLIFE/ReLIFE%20Report%20108%20%5BWhiteout%20Scans%5D.zip
```

Probably the easiest solution to this issue would to be to write a urlrewrite for this domain to allow any url to be authenticated.

Please reopen in [feathub](http://feathub.com/Flexget/Flexget)
Seeing that a basic feature that should be expected in every http client has seen absolutely no activity in almost a year, I don't see why I would bother.

It is clear this would just rot over there just like it has here.
While I agree with you that this is pretty basic stuff for any http client, 99% of the users simply do not a generic auth in place, or have it already implemented per plugin (see [here](https://github.com/Flexget/Flexget/blob/develop/flexget/plugins/sites/rutracker.py#L65) for example). 

I should also mention that this is a free an open project, being worked on by busy people with full lives, so your bitchy attitude has no merit whatsoever. If you have a problem with the rate of development, feel free to submit a PR. 

That being said, I will develop this since I agree that it's indeed missing from Flexget

Resolving patch:
diff --git a/flexget/plugins/output/download_auth.py b/flexget/plugins/output/download_auth.py
new file mode 100644
--- /dev/null
+++ b/flexget/plugins/output/download_auth.py
@@ -0,0 +1,62 @@
+from __future__ import unicode_literals, division, absolute_import
+
+import re
+import logging
+
+from requests.auth import HTTPBasicAuth, HTTPDigestAuth
+
+from flexget import plugin
+from flexget.event import event
+
+PLUGIN_NAME = 'download_auth'
+
+log = logging.getLogger(PLUGIN_NAME)
+
+
+class DownloadAuth(object):
+    host_schema = {
+        'additionalProperties': {
+            'type': 'object',
+            'properties': {
+                'username': {'type': 'string'},
+                'password': {'type': 'string'},
+                'type': {
+                    'type': 'string',
+                    'enum': ['basic', 'digest'],
+                    'default': 'basic'
+                }
+            },
+            'required': ['username', 'password']
+        }
+    }
+    schema = {
+        'type': 'array',
+        'items': host_schema,
+        'minimumItems': 1
+    }
+
+    auth_mapper = {
+        'basic': HTTPBasicAuth,
+        'digest': HTTPDigestAuth
+    }
+
+    # Run before all downloads
+    @plugin.priority(255)
+    def on_task_download(self, task, config):
+        for entry in task.accepted:
+            if entry.get('download_auth'):
+                log.debug('entry %s already has auth set, skipping', entry)
+                continue
+            for host_config in config:
+                for host, auth_config in host_config.items():
+                    if re.search(host, entry['url'], re.IGNORECASE):
+                        auth_type = auth_config['type']
+                        username = auth_config['username']
+                        password = auth_config['password']
+                        log.debug('setting auth type %s with username %s', auth_type, username)
+                        entry['download_auth'] = self.auth_mapper[auth_type](username, password)
+
+
+@event('plugin.register')
+def register_plugin():
+    plugin.register(DownloadAuth, PLUGIN_NAME, api_ver=2)


Test patch:
diff --git a/flexget/tests/cassettes/test_download.TestDownloadAuth.test_download_auth b/flexget/tests/cassettes/test_download.TestDownloadAuth.test_download_auth
new file mode 100644
--- /dev/null
+++ b/flexget/tests/cassettes/test_download.TestDownloadAuth.test_download_auth
@@ -0,0 +1,121 @@
+interactions:
+  - request:
+      body: null
+      headers:
+        Accept: ['*/*']
+        Accept-Encoding: ['gzip, deflate']
+        Connection: [keep-alive]
+        User-Agent: [!!python/unicode 'FlexGet/2.10.39.dev (www.flexget.com)']
+      method: GET
+      uri: https://httpbin.org/digest-auth/auth/user/passwd/MD5
+    response:
+      body: {string: !!python/unicode ''}
+      headers:
+        access-control-allow-credentials: ['true']
+        access-control-allow-origin: ['*']
+        connection: [keep-alive]
+        content-length: ['0']
+        content-type: [text/html; charset=utf-8]
+        date: ['Thu, 27 Apr 2017 09:15:43 GMT']
+        server: [gunicorn/19.7.1]
+        set-cookie: [fake=fake_value]
+        via: [1.1 vegur]
+        www-authenticate: ['Digest realm="me@kennethreitz.com", nonce="e10ceded18adcdaa498bfa1f69a735f4",
+            algorithm=MD5, qop="auth", opaque="0ade88773fd3a104a4f13b11ceaa0377"']
+      status: {code: 401, message: UNAUTHORIZED}
+  - request:
+      body: null
+      headers:
+        Accept: ['*/*']
+        Accept-Encoding: ['gzip, deflate']
+        Connection: [keep-alive]
+        User-Agent: [!!python/unicode 'FlexGet/2.10.39.dev (www.flexget.com)']
+      method: GET
+      uri: https://httpbin.org/basic-auth/user/passwd
+    response:
+      body: {string: !!python/unicode ''}
+      headers:
+        access-control-allow-credentials: ['true']
+        access-control-allow-origin: ['*']
+        connection: [keep-alive]
+        content-length: ['0']
+        date: ['Thu, 27 Apr 2017 09:15:43 GMT']
+        server: [gunicorn/19.7.1]
+        via: [1.1 vegur]
+        www-authenticate: [Basic realm="Fake Realm"]
+      status: {code: 401, message: UNAUTHORIZED}
+  - request:
+      body: null
+      headers:
+        Accept: ['*/*']
+        Accept-Encoding: ['gzip, deflate']
+        Connection: [keep-alive]
+        User-Agent: [!!python/unicode 'FlexGet/2.10.39.dev (www.flexget.com)']
+      method: GET
+      uri: https://httpbin.org/digest-auth/auth/user/passwd/MD5
+    response:
+      body: {string: !!python/unicode ''}
+      headers:
+        access-control-allow-credentials: ['true']
+        access-control-allow-origin: ['*']
+        connection: [keep-alive]
+        content-length: ['0']
+        content-type: [text/html; charset=utf-8]
+        date: ['Thu, 27 Apr 2017 09:15:44 GMT']
+        server: [gunicorn/19.7.1]
+        set-cookie: [fake=fake_value]
+        via: [1.1 vegur]
+        www-authenticate: ['Digest algorithm=MD5, qop="auth", nonce="90f0fb894a49f0ab99791daa5084c813",
+            opaque="5facaa3ec10d661665be9d75e4ee6e29", realm="me@kennethreitz.com"']
+      status: {code: 401, message: UNAUTHORIZED}
+  - request:
+      body: null
+      headers:
+        Accept: ['*/*']
+        Accept-Encoding: ['gzip, deflate']
+        Authorization: [!!python/unicode 'Digest username="user", realm="me@kennethreitz.com",
+            nonce="90f0fb894a49f0ab99791daa5084c813", uri="/digest-auth/auth/user/passwd/MD5",
+            response="ec7aadb65af8e9fa610ca640a68f8246", opaque="5facaa3ec10d661665be9d75e4ee6e29",
+            algorithm="MD5", qop="auth", nc=00000001, cnonce="7342fef9bdcebaa3"']
+        Connection: [keep-alive]
+        Cookie: [fake=fake_value]
+        User-Agent: [!!python/unicode 'FlexGet/2.10.39.dev (www.flexget.com)']
+      method: GET
+      uri: https://httpbin.org/digest-auth/auth/user/passwd/MD5
+    response:
+      body: {string: !!python/unicode "{\n  \"authenticated\": true, \n  \"user\"\
+          : \"user\"\n}\n"}
+      headers:
+        access-control-allow-credentials: ['true']
+        access-control-allow-origin: ['*']
+        connection: [keep-alive]
+        content-length: ['47']
+        content-type: [application/json]
+        date: ['Thu, 27 Apr 2017 09:15:44 GMT']
+        server: [gunicorn/19.7.1]
+        via: [1.1 vegur]
+      status: {code: 200, message: OK}
+  - request:
+      body: null
+      headers:
+        Accept: ['*/*']
+        Accept-Encoding: ['gzip, deflate']
+        Authorization: [Basic dXNlcjpwYXNzd2Q=]
+        Connection: [keep-alive]
+        User-Agent: [!!python/unicode 'FlexGet/2.10.39.dev (www.flexget.com)']
+      method: GET
+      uri: https://httpbin.org/basic-auth/user/passwd
+    response:
+      body: {string: !!python/unicode "{\n  \"authenticated\": true, \n  \"user\"\
+          : \"user\"\n}\n"}
+      headers:
+        access-control-allow-credentials: ['true']
+        access-control-allow-origin: ['*']
+        connection: [keep-alive]
+        content-length: ['47']
+        content-type: [application/json]
+        date: ['Thu, 27 Apr 2017 09:15:44 GMT']
+        server: [gunicorn/19.7.1]
+        via: [1.1 vegur]
+      status: {code: 200, message: OK}
+version: 1
diff --git a/flexget/tests/test_download.py b/flexget/tests/test_download.py
--- a/flexget/tests/test_download.py
+++ b/flexget/tests/test_download.py
@@ -105,3 +105,47 @@ def test_wrong_config_3(self, execute_task):
         """Download plugin: Temp directory config error [3of3]"""
         task = execute_task('temp_empty', abort_ok=True)
         assert task.aborted
+
+
+@pytest.mark.online
+@pytest.mark.usefixtures('tmpdir')
+class TestDownloadAuth(object):
+    config = """
+        templates:
+          download:
+            disable: builtins
+            mock:
+            - title: digest
+              url: https://httpbin.org/digest-auth/auth/user/passwd/MD5
+            - title: basic
+              url: https://httpbin.org/basic-auth/user/passwd
+            accept_all: yes
+            download:
+              path: __tmp__
+              temp: __tmp__
+            
+        tasks:
+          no_auth:
+            template:
+            - download
+            
+          with_auth:
+            template:
+            - download
+            download_auth:
+            - digest-auth:
+                username: user
+                password: passwd
+                type: digest
+            - basic-auth:
+                username: user
+                password: passwd       
+    """
+
+    def test_download_auth(self, execute_task):
+        """Test download basic and digest auth"""
+        task = execute_task('no_auth')
+        assert len(task.failed) == 2
+
+        task = execute_task('with_auth')
+        assert len(task.accepted) == 2