We are getting the 400 Bad Request response code with the following error message:
<html> <head> <title>400 The plain HTTP request was sent to HTTPS port</title> </head> <body bgcolor="white"> <center> <h1>400 Bad Request</h1> </center> <center>The plain HTTP request was sent to HTTPS port</center> </body> </html>
We did check the target server settings used in the API Proxy is configured for secure connection with HTTPS port # 443 as follows:
{ "host": "mytarget.domain.com", "isEnabled": true, "name": "mytarget", "port": 443, "sSLInfo": { "ciphers": [], "clientAuthEnabled": "false", "enabled": "true", "ignoreValidationErrors": false, "protocols": [] } }
Here's the Target Endpoint configuration:
<HTTPTargetConnection> <LoadBalancer> <MaxFailures>0</MaxFailures> <RetryEnabled>true</RetryEnabled> <Server name="mytarget"> <IsEnabled>true</IsEnabled> <IsFallback>false</IsFallback> <Weight>1</Weight> </Server> </LoadBalancer> <Properties/> </HTTPTargetConnection>
Can you please check why are we getting this error ?
Solved! Go to Solution.
[Unencrypted HTTP protocol detected over encrypted port, could indicate a dangerous misconfiguration.]
{ "host": "mytarget.domain.com", "isEnabled": true, "name": "mytarget", "port": 443 }
The plain HTTP request was sent to HTTPS port
With this, the issue was resolved.
[Unencrypted HTTP protocol detected over encrypted port, could indicate a dangerous misconfiguration.]
{ "host": "mytarget.domain.com", "isEnabled": true, "name": "mytarget", "port": 443 }
The plain HTTP request was sent to HTTPS port
With this, the issue was resolved.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |