Prefer https:// for URLs throughout project


# [Codecov](https://codecov.io/gh/requests/requests/pull/4805?src=pr&el=h1) Report
> Merging [#4805](https://codecov.io/gh/requests/requests/pull/4805?src=pr&el=desc) into [master](https://codecov.io/gh/requests/requests/commit/207e83f6b63250c2251f9654f31507ea5cc7edc6?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/requests/requests/pull/4805/graphs/tree.svg?width=650&token=mZGswIiXLa&height=150&src=pr)](https://codecov.io/gh/requests/requests/pull/4805?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master    #4805   +/-   ##
=======================================
  Coverage   66.77%   66.77%           
=======================================
  Files          15       15           
  Lines        1568     1568           
=======================================
  Hits         1047     1047           
  Misses        521      521
```


| [Impacted Files](https://codecov.io/gh/requests/requests/pull/4805?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [requests/models.py](https://codecov.io/gh/requests/requests/pull/4805/diff?src=pr&el=tree#diff-cmVxdWVzdHMvbW9kZWxzLnB5) | `77.35% <ø> (ø)` | :arrow_up: |
| [requests/api.py](https://codecov.io/gh/requests/requests/pull/4805/diff?src=pr&el=tree#diff-cmVxdWVzdHMvYXBpLnB5) | `36.36% <ø> (ø)` | :arrow_up: |
| [requests/sessions.py](https://codecov.io/gh/requests/requests/pull/4805/diff?src=pr&el=tree#diff-cmVxdWVzdHMvc2Vzc2lvbnMucHk=) | `76.34% <ø> (ø)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/requests/requests/pull/4805?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/requests/requests/pull/4805?src=pr&el=footer). Last update [207e83f...839af77](https://codecov.io/gh/requests/requests/pull/4805?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).


Did you verify all of these work?

Hi Kenneth,

I've done this same change on a number of different repositories now. I automated this change using the script:

https://github.com/jdufresne/commit-messages/blob/master/scripts/checkhttp.py

At a high level, this script does the following:

1. Scans all text files for strings that look like a URL starting with `http://`
2. Tries fetching the same URL but with `https://`
3. Check the final destination is a 200 response with protocol `https://` (to avoid redirects back to `http://`)
4. If it looks good, replace all occurrences

After running the script, I analyze the results locally using a visual diff tool (I like [meld](https://wiki.gnome.org/Apps/Meld)). I undo the changes for tests that look to be intentionally using an `http://` URL (requests has a lot of these). I also try to remove `en/latest/` paths from readthedocs that didn't previously exist. I manually test a bunch of URLs especially any that look suspicious with a wildly different path. I re-analyze the results using GitHub's diff tool (I find looking at a diff in multiple ways can help emphasize different differences).

Many of the changed URLs share a domain. So after spot checking a few from these domains, we can be confident with the rest.

So, in summary, a script has confirmed that all these changes result in `https://` URLs that 200 and several have been manually tested.

Please feel free to re-run the script to verify or do additional manual testing.


Thanks for catching those mistakes. Restored and fixed in the latest revision.