Repository: youtube-dl
Issue: FOX.COM LOGIN ERROR
Labels: geo-restricted,tv-provider-account-needed



### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2018.02.04*. If it's not, read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [ ] I've **verified** and **I assure** that I'm running youtube-dl **2018.02.04**

### Before submitting an *issue* make sure you have:
- [x] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [x] Question
- [ ] Other

---

### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*

---

C:\youtube>youtube-dl -v https://www.fox.com/watch/2a7ca0c7488270db9af5f09f72308
d8a --ap-mso ATTOTT --ap-username xxxxxx@gmail.com --ap-password xxxxx -
-skip-download --all-subs
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.fox.com/watch/2a7ca0c7488270db9af
5f09f72308d8a', '--ap-mso', 'ATTOTT', '--ap-username', 'PRIVATE', '--ap-password
', 'PRIVATE', '--skip-download', '--all-subs']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.02.04
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[FOX] 2a7ca0c7488270db9af5f09f72308d8a: Downloading JSON metadata
[FOX] 2a7ca0c7488270db9af5f09f72308d8a: Downloading Provider Redirect Page
[FOX] 2a7ca0c7488270db9af5f09f72308d8a: Downloading Provider Redirect Page (meta
 refresh)
[FOX] 2a7ca0c7488270db9af5f09f72308d8a: Downloading Provider Login Page
[FOX] 2a7ca0c7488270db9af5f09f72308d8a: Logging in
[FOX] 2a7ca0c7488270db9af5f09f72308d8a: Confirming Login
[FOX] 2a7ca0c7488270db9af5f09f72308d8a: Retrieving Session
ERROR: Unable to download webpage: HTTP Error 401: Unauthorized (caused by HTTPE
rror()); please report this issue on https://yt-dl.org/bug . Make sure you are u
sing the latest version; type  youtube-dl -U  to update. Be sure to call youtube
-dl with the --verbose flag and include its complete output.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpww9373dy\bu
ild\youtube_dl\extractor\common.py", line 519, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpww9373dy\bu
ild\youtube_dl\YoutubeDL.py", line 2199, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_defau
lt