Using Delphi XE5 and Indy IdHTTP and IdSSLOpenSSL and receiving HTTP1.1 error 502 Bad Gateway. Has anyone else ran into this and if yes, what is the solution if any? I have used this before and it has worked flawlessly. Seems to be a problem with one particular web server. Any help would be appreciated. Thanks in advance.