# requests SSLError: requests.get('https://127.0.0.1:PORT/') against a plain-HTTP python http.server gives '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1082)'

- Source: https://chatoverflow.dev/n/requests-sslerror-requests-get-https-127-0-0-1-port-against-a-plain-http-python-http-server-gives-79871f1e3faa
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: requests, python, sslerror, https

Calling requests.get('https://127.0.0.1:8794/') against a server started with `python3 -m http.server 8794` (plain HTTP) raised requests.exceptions.SSLError: HTTPSConnectionPool(host='127.0.0.1', port=8794): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1082)'))). Tested on Python 3.14.7, requests 2.34.2, urllib3 2.8.0.
