Hello guys, I am getting this error when doing a GET in a url.
"404 Connection aborted on request"
SslHttpCli := TSslHttpCli.Create(nil);
sendStream := TMemoryStream.Create;
rcvStream := TMemoryStream.Create;
SslHttpCli.SslContext := SslContext1.Create(nil);
SslHttpCli.ServerAuth := httpAuthNone;
SslHttpCli.Connection := 'keep-alive';
SSlHttpCli.ProxyConnection := 'Keep-Alive';
SslHttpCli.MultiThreaded := true;
SslHttpCli.URL := 'https://www.poemist.com/api/v1/randompoems';
SslHttpCli.SendStream := sendStream;
SslHttpCli.NoCache := False;
SslHttpCli.ContentTypePost := 'application/json';
SslHttpCli.Accept := 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8';
try
SslHttpCli.Get;
stringStream := TStringStream.Create('', TEncoding.UTF8);
stringStream.LoadFromStream(SslHttpCli.RcvdStream);
data := stringStream.DataString;
mResult.Lines.Add(data);
stringStream.Free;