Making a simple request to a password generator API (makemeapassword.ligos.net).
If I run it through the Fiddler proxy, it runs fine. When I close fiddler and turn off the proxy, it doesn't work. Error returned is "Socket Error # 10054 Connection reset by peer."
I've tried messing the SSLOptions.Method and Version but none of those are working. I've also updated the OpenSLL DLLs to the latest version with no luck. Any hints on where I should be looking?
Using Delphi 10 Seattle.
var
HTTP: TIdHTTP;
SSL: TIdSSLIOHandlerSocketOpenSSL;
URL : String;
begin
URL := TIdURI.URLEncode('https://makemeapassword.ligos.net/api/v1/passphrase/plain?pc=1&wc=4&sp=n&maxCh=64&whenNum=EndOfPhrase&nums=1&whenUp=StartOfWord&ups=4');
HTTP := TIdHTTP.Create(nil);
try
{with Fiddler turned on, and these uncommented out, it works}
{HTTP.ProxyParams.ProxyServer := '127.0.0.1';}
{HTTP.ProxyParams.ProxyPort := 8888;}
SSL := TIdSSLIOHandlerSocketOpenSSL.Create(HTTP);
HTTP.IOHandler := SSL;
HTTP.Get(URL);
finally
HTTP.Free;
end;