2,145 questions
2
votes
0
answers
285
views
Indy 10 TCPServer and SSL certificate verifying issue (error 20, SSL alert number 48)
I am developing an application, which has a built-in TCP server. I want the server to be secure via OpenSSL. The server has to identify its clients and the clients must identify the server.
If I ...
0
votes
1
answer
120
views
Delphi 11+ 64-bit executable: How do I specify which DLLs to load when Indy 10 initializes OpenSSL?
I have a set of 64-bit DLLs, but the standard DLL names for the 64-bit DLL names clash with the 32-bit DLL names. We should probably not mix 32-bit and 64-bit and have their .exes and .dlls in ...
2
votes
1
answer
144
views
Delphi Indy UDP broadcast failing
I'm using Delphi 12.3 w/ Indy on a machine with multiple network adapters. I have industrial devices connected to the various adapters. The devices look for a UDP query packet on port 11864 with a ...
0
votes
0
answers
52
views
Which certificate file for TaurusTLS RootKey property?
I've generated a domain certificate and it comes with three files: a certificate, a private key, and a CA bundle.
The TTaurusTLSServerIOHandler exposes three fields:
PrivateKey
PublicKey
Rootkey
I set ...
3
votes
0
answers
194
views
Get Delphi 13 Indy to support HTTPS REST requests
I'm using Delphi 13 and the TIdHTTPWebBrokerBridge to create a 32-bit FMX REST server called PocketGMServer.exe.
It's hosted on an Amazon LightSail Windows 2022 instance.
Everything works as expected ...
0
votes
0
answers
66
views
Indy IdHTTPWebBrokerBridge linker error in Embarcadero C++Builder 12.1 Community Edition
I used the SOAP app wizard to create a shell for a simple web interface. My RAD Studio C++Builder 12.1 has lots of Indy and SOAP components in the Palette, so it seems to be installed. But I get a ...
0
votes
1
answer
132
views
How to fix error on compile : "Could not compile used unit 'IdUri'"
I'm using Delphi 12. One of my applications uses the unit IdUri. When I try to compile the application (CTRL+F9), I'm getting this error:
[dcc32 Fatal Error] myunit.pas(9): F2063 Could not compile ...
3
votes
3
answers
209
views
The code execution cannot proceed because IndySystem370.bpl was not found
I just upgraded one of my projects from an old version of Delphi to the latest Delphi 13. When I run the project within the Delphi IDE it works, but when I move the EXE to my client's computer it ...
1
vote
2
answers
247
views
Problem downloading online OpenStreetMap tiles using Delphi Indy
As from about Sep 21 2025, a Windows program I developed in Delphi that downloads online OpenStreetMap tiles using Indy's TIdHTTP.Get() method has stopped working, sometimes issuing error messages ...
2
votes
1
answer
148
views
Indy TCP server MaxConnections occasionally being ignored
I have a TWebModule (THireTrack_NX_API_Handler) that is being created via an Indy TIdHTTPWebBrokerBridge.
All seems to work as expected, only FWebBrokerBridge.MaxConnections seems to get ignored.
...
3
votes
1
answer
529
views
Why do WinHTTP and TNetHTTPClient timeout (error 12002) on one Wi-Fi network but succeed on others?
I'm developing a Delphi application to download files using both WinHTTP (via direct API calls) and TNetHTTPClient. Everything works fine on most networks, but on one specific open Wi-Fi network, both ...
1
vote
1
answer
147
views
Problem with infinite loop in TIdTCPServer.OnExecute event
I am building two simple apps with Delphi, one as a TCP client and one as TCP server, using Indy components TIdTCPClient and TIdTCPServer.
I am struggling with my TIdTCPServer.OnExecute event handler ...
1
vote
0
answers
117
views
TIdHTTP.Get() blocks until a server closes connection
This problem concerns Indy, TLSv1.3 and session tickets. I use the Indy version supporting TLSv1.3 downloaded from GitHub:
https://github.com/MWASoftware/Indy.proposedUpdate
All worked very well until ...
1
vote
1
answer
277
views
Delphi 12.3 Trial, no indy components installed
Delphi version: 12.3 Architect Trial
I wanted to validate a new Delphi and DevExpress versions for a planned upgrade path, but started to receive this weird 'indy' not found error which pointed to ...
1
vote
1
answer
159
views
EIdOSSLLoadingCertError "[...] PEM_read_bio:no start line" when trying to post with TIdHTTP and SSLIOHandler
I'm trying to do a POST request in Delphi, using the Indy TIdHTTP component. The target host requires a certificate and key files. Testing the requests with Postman or Insomnia, it works fine, returns ...
2
votes
1
answer
197
views
How to terminate a TIdHTTP.Get() request when receiving SSE events?
I need to handle Server-Sent Events (SSE) via an HTTP GET request. Everything is working fine, except that I have no way of terminating the GET request immediately. Instead, I need to wait for some ...
-2
votes
1
answer
47
views
Script for send text/http file to Indy server
I have SW with Indy v.8 HTTP server, which listen on IP and PORT number. I am able to connect to this server by Telnet and send simply text eg. one word to this server. But problem is that I am not ...
2
votes
1
answer
167
views
Delphi: TIdHTTP loses encoding in exception
I make a HTTP POST request using TIdHTTP:
var
ssRequest, ssResponse: TStringStream;
...
IdHTTP.Post(fullUrl, ssRequest, ssResponse);
The server responds with:
400 Bad Request
and passes useful ...
0
votes
0
answers
95
views
Indy email error in domains with Internationalized Domain Name
When the recipient of the email has a domain with ñ, eg:
IdMessage.Recipients.Add.Text := 'algo@domainwithñ.com';
An error appears when executing this instruction:
IdSMTP.Send(IdMessage);
Project ...
1
vote
1
answer
69
views
Is TControlList::Invalidate() thread safe?
If I call MainForm->ControlList1->Invalidate() from a TIdUDPServer::>OnUDPRead event, is it thread safe, or do I still need to use TThread::Synchronize() or TThread::Queue()?
4
votes
0
answers
291
views
Delphi 12.2 INDY TLS 1.2 Ciphers no ECDHE-ECDSA
My server uses the "stock" Indy that comes with Delphi 12.2, and the OpenSSL 1.0.2u DLLs from Indy's GitHub. I am forcing the server to use TLS 1.2 only:
SSLHandler.SSLOptions.SSLVersions := ...
2
votes
1
answer
114
views
How do I reset a buffer of indy UDP client?
I noticed a little issue with Indy's TIdSNTP:
If the timeout is less than actual network delay, when doing DateTime request, the datagram is not received in timeout time;
however this old datagram is ...
0
votes
0
answers
62
views
How to identify encrypted connection?
I am making an application in Delphi using Indy to make a socket that can be encrypted with TLS. I have an IdTCPServer and an SslHandler connected to it. But I have some clients that can connect via ...
1
vote
1
answer
131
views
Using Indy10, UDP server return response being sent by a different IP
I finally resolved today why simple UDP client/server text communications to a server was producing an error. The server has 2 IPv4 addresses. I was sending to one of the IP addresses and ...
1
vote
1
answer
119
views
Delphi 11, IMAP, Command Argument Error. 12 on Windows Server 2016
I have an application that uses Indy TIdIMAP4 to connect to a mail server, read messages, and download attachments. The app works correctly on Windows 10.
When trying to transfer it to Windows 11 or ...
0
votes
1
answer
114
views
Different behavior of TIdTCPClient/TIdTCPServer application in Debug/Release complication mode
A very simple Delphi 12 TIdTCPClient/TIdTCPServer application for Windows, under OpenVPN, WORKS fine when the Server app is built and run in Debug mode, and is NOT working when the Server app is built ...
0
votes
1
answer
152
views
How to troubleshoot error 10054 in idHTTP
I want to download the JSON Info at
idHTTP := TIdHTTP.Create(nil);
JSON:=idHTTP.get('https://login.microsoftonline.com/common/.well-known/openid-configuration');
and get an error
10054 Connection ...
1
vote
1
answer
175
views
Optimal UDP datagram size
I have read a lot of related questions here, however its still quite confusing: how to choose the proper size for an UDP datagrams If the goal is to send data as fast as possible with an allowable ...
0
votes
1
answer
200
views
TIdHTTPServer hangs when deactivated
First, please refer to a similar but not exactly duplicate question. That question was solved by uninstalling a defective Windows update on Windows server, which is not my case at all (as I'm on ...
0
votes
2
answers
108
views
ReadTimeout during IOHandler.ReadBytes()
I am using Delphi 12.1 and Indy 10 on the client side and FreeRTOS 10 (Xilinx ARM53 on Zynq UltraScale) and LwiP on the server side. Only one client/thread is active.
I have the following simplified ...
-2
votes
1
answer
146
views
Access Violation when call X509_new in Indy
I use the following procedure:
procedure TForm2.Label1DblClick(Sender: TObject);
procedure GenerateSelfSignedCertificate(const AFileName: string);
procedure GenerateRandomSerialNumber(...
0
votes
0
answers
357
views
Indy 10 error: "could not load SSL library"
I am using RAD Studio 2010.
I am using Indy as it is when I installed 10.5.5.
I am trying to send an email to Naver or Google mail using TIdSMTP.
When I try to send an email, I get a message saying &...
1
vote
1
answer
164
views
Socket.ReadTimeout Exception handling
I am using Delphi 12.1 and Indy 10 to implement a client/server application, in which the client asks for data and waits until the server sends it:
procedure TSocketThread.Execute;
var
Buffer: ...
0
votes
0
answers
129
views
Client and server applications often crash with the Indy component
I can't find a solution to solve this problem.
The application works very well but when 4 or 5 clients start connecting and exchanging data at the same time,
The other clients currently exchanging ...
1
vote
1
answer
471
views
RAD Studio 12.2 update to Indy 10.6.3.6 causes SMTP TLS authentication to fail
I updated my Indy components in RAD Studio C++Builder as I wanted to try and add OAUTH2 to my SMTP email sending.
I saw in this thread (Add support for XOAUTH2 SASL authentication) that code had been ...
1
vote
1
answer
401
views
Reading EML-FIles with Delphi
I want to read eml-files and extract the plain text.
So far i have found the TIdMessage with which i can iterate over the TIdMessage.MessageParts and check if their PartType is mptText. All of that ...
1
vote
1
answer
114
views
Delphi 2007/Indy10 SMTP client : sends ??????? not Greek characters
I use TidSMTP component with Delphi 2007 to send eMails in Greek language with the following code
with IdMsg do begin
clear;
contentType := 'multipart/mixed';
Charset := 'GREEK_CHARSET';
...
1
vote
1
answer
307
views
Delphi error [DCC Error] E2202 Required package 'IndyCore' not found after indy update
I updated Delphi 2007 with the newest Indy packages. I have put the core/protocols/system directories in the Library path. When I create a new app, everything works fine. It compiles and runs ok. ...
0
votes
1
answer
206
views
Sending UTF-8 encoded response with Delphi 7 and Indy 10
I need to send an UTF-8 encoded response with a Indy 10 HTTP server which includes special characters (like ő and á). The original program was written with Indy 9 and there was no problem, but ...
0
votes
1
answer
200
views
Problem connecting Delphi client application to service via TCP/IP
I'm trying to connect my client application written in Delphi to a service running on a server using TCP/IP. The service is also written in Delphi and uses TIdTCPServer to listen for connections. When ...
2
votes
1
answer
550
views
Adding certificate to Fiddler on request
I want to use Fiddler as a proxy for debugging purpose. Without fiddler everything works perfectly fine.
I have to add a certificate to my HTTP request. My code looks like this:
constructor ...
0
votes
1
answer
297
views
Indy TIdFTP TSL1.2 Error 534 Protection level C not allowed
I have an older Delphi project where in we use the TIdFTP client. I have been unable to get it to work there so I have started a side project where I can test the component. I am also running a ...
1
vote
1
answer
302
views
IMAP4 does not authenticate with Gmail in Delphi 2010
I'm very new to Indy, so apologies if there are some glaring issues here.
I'm trying to retrieve emails out of my Gmail inbox, then save them to an array of TIdMessage objects.
I can't find any ...
0
votes
1
answer
206
views
Indy TIdHTTP apparently missing a server cookie on post request?
I have Indy 10.6.2.5366 and delphi Tokyo 10.2 update 3.
In a response to an HTTPS POST, the CookieManager states there are no cookies, but when i do the same request in postman, there's a Cookie ...
0
votes
0
answers
92
views
How to process a GET request in TIdHTTPServer when changing the position of a video in the browser?
I'm trying to write a simple HTTP server that can send videos (mp4) to the browser. But I can't make it so that the user can randomly change the playback position of the video in the browser.
I'm able ...
1
vote
1
answer
227
views
Delphi Indy connection through Proxy using NTLM gives a POST exception
I am trying to connect to a web server through an NTLM proxy using Delphi 11.3 and the supplied Indy library.
I can make this work for GET commands, but for POST I get an EAbort exception.
If I access ...
0
votes
1
answer
644
views
How to send an ECR message to a POS device?
I need to send some "amount of money" command to a POS device to initiate a credit card validation.
They say I need to send something like this, some kind of datagram protocol:
00 1A 30 30 ...
0
votes
1
answer
103
views
Problems sending data with IdTCPServer and TIdThreadSafeObjectList using TMemoryStream
I'm missing something trying to implement sending TMemoryStream data because when I try to send them to clients in TMyContext.SendQueue() the streams are empty.
Here is my simplified code:
TMyContext =...
0
votes
1
answer
82
views
How to handle clients connections of unknown format and length in the OnExecute method of Indy IdTCPServer
If I have:
procedure TFServer.IdTCPServerExecute(AContext: TIdContext);
begin
...
size:=AContext.Connection.IOHandler.ReadLongInt;
Context.Connection.IOHandler.ReadStream(msgStream, size);
...
...
1
vote
0
answers
410
views
Amavis alert BAD HEADER SECTION, MIME error on Delphi+Indy generated email
I wrote a service app in Delphi 10 that sends emails (either with or without attachment). I use Indy 10.6.2. This is the main code that sends the email:
with FdmMSThread do
begin
// based on ...