Use case 2: when a request is made to https://api2.com/testapi after the evaluations we are returning the upstream “api1.com”(api1.com:443) and it fails with “400 bad request”(Your browser sent a request that this server could not understand. Reason: You’re speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.).
On use case2 when the system returns to upstream “api1.com” the functionality should have worked same as use case1 but its not working.
Note: The same use cases are working perfectly fine when the service protocol is https.
Please let me know in case of any mistakes and help me out in solving this.