Answer the question
In order to leave comments, you need to log in
How to correctly send a GET request through an SSL tunnel in Python?
On a Debian server, a service (JSON-RPS) with a REST API is running.
To connect to the server via SSL
, you need to write GET requests to the service in Python 3.6.
created a tunnel in Putty. localport--> server: the port on which the service is running.
I form a request:
s = requests.Session()
url = "https://localhost:3704"
response = s.post(
url,
data=json.dumps(rpc_input),
headers=headers,
timeout = 5,
verify=False)
requests.exceptions.SSLError: HTTPSConnectionPool(host='localhost', port=3704): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')",),))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question