How to make a https request by ip address?, by example, with cloudflare:
>>> import requests>>> requests.get('https://104.18.5.125/', verify=False, headers={ 'host': 'example.com' })...requests.exceptions.SSLError: HTTPSConnectionPool(host='104.18.5.125', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_read_bytes', 'sslv3 alert handshake failure')])")))
But when make the request using the original hostname works fine.
>>> requests.get('https://example.com/', verify=False)<Response [200]>
When try access from Mozilla Firefox says: SSL_ERROR_NO_CYPHER_OVERLAP
.
Need test remote https servers for virtual host checking, but can not made the request using the ip address. How to disable warnings from python3 code and made the request?