834 questions
0
votes
0
answers
56
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
99
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 ...
1
vote
1
answer
126
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 ...
2
votes
1
answer
92
views
Failing to activate TLS version 1.1 and upper with Indy 10.6.2.0 under C++Builder 11.0
I am trying to send an email using an SMTP server that accepts only TLS 1.1 and higher, but I didn't manage to activate the good TLS version with Indy 10.6.2.0 under C++Builder 11.0. I copied ...
0
votes
1
answer
324
views
Indy10 network library - openssl 3.X and TLS1.3 support
I am currently using Indy10 library along with OpenSSL 1.0.2u to support TLS1.2 in my application. Could you please share details about how I can support TLS1.3 in my application?
Do I have to upgrade ...
1
vote
1
answer
111
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 ...
0
votes
1
answer
84
views
How to get a response from SendCmd in Indy?
I use TIdImap4->SendCmd() to send XOAUTH2 token to access my mailbox. I send command:
IdIMAP41->SendCmd("AUTHENTICATE XOAUTH2 " + encodedAuth, OPENARRAY(String, ("AUTHENTICATE ...
0
votes
0
answers
77
views
EIdOSSLUnderlyingCryptoError with message 'Error accepting connection with SSL. error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number'
I am trying to make a communication with a TCP socket (client/server) using Delphi 12 and Indy 10.6.2.0. I am getting the following error:
EIdOSSLUnderlyingCryptoError with message 'Error accepting ...
0
votes
1
answer
64
views
How to catch all exceptions at application level?
I have a Delphi 12 application that uses TIdTCPServer, TThreadProcess... and stuff like that. Occasionally it throws exceptions when debugging, but it doesn't mark the line that generated the ...
0
votes
1
answer
106
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
171
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
102
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 ...
0
votes
0
answers
148
views
Error 'Could not load certificate' when load a self-signed certificate into a Indy web server
I want to get a token from a desktop app that calls an OAuth2 authentication server that requires an HTTPS connection for the callback.
For this, I created a local Indy web server and use a self-...
0
votes
0
answers
270
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
142
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: ...
2
votes
1
answer
379
views
Indy SMTP for hotmail with app password and two step verification
Since some days Indy TIdSMTP can no longer send email from my program from a Hotmail account throwing the error Authentication unsuccessful Basic authentication is disabled.
I activated two-step ...
1
vote
1
answer
425
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
205
views
When sending email via SMTP - How to suppress "Connection Closed Gracefully" dialog
"Connection Closed Gracefully" dialog is shown when sending email (SMTP) if there is some condition that causes the network connection to close. The dialog always appears and I seem to be ...
-3
votes
1
answer
181
views
Delphi-Android app: Could not load SSL Library (NEW POST)
I have read many posts about this problem and I have tried many combinations/advices about it without success. Here is my test applet :
unit uTestSSL;
interface
uses
System.SysUtils, System.Types, ...
1
vote
2
answers
135
views
TIdTCPServer binding for localhost allows connections from other IP addresses
I create a binding to allow connections only for localhost:
IdTCPServer.Bindings.Clear;
IdTCPServer.Bindings.Add;
IdTCPServer.Bindings.Items[0].SetPeer('127.0.0.1', 1001);
//...
IdTCPServer.Active := ...
0
votes
1
answer
186
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
0
answers
80
views
Indy Sockets 10.6.3.5 - IdRegister.pas(215): E2225 Never-build package 'IndyProtocols230' must be recompiled
I reinstalled Delphi 10 due to a persistent IDE error on start. After installing Delphi, I installed Indy 10 to this new install. I downloaded 10.6.3.5 from github, then deleted a previous install ...
0
votes
0
answers
141
views
Sending an email using Indy10 and OpenSSL is throwing error: "Transaction failed Reject due to policy restrictions"
I am using Delphi 10.4.3, Indy 10.6.2.0, and OpenSSL DLL versions 1.0.2u. My program sends an email at process completion, but in the last few months it's been throwing an error when attempting to ...
0
votes
1
answer
181
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 ...
1
vote
1
answer
218
views
Error 403 using TIdHTTP for a GET request in Delphi RIO - Same url works in Postman
I am having a problem.
I try various possible solutions, but something is still wrong in my code, and I can't figure out what is it.
Function:
function HTTPRestApiGet(var HTTP: TIdHTTP; necesitaSSL: ...
1
vote
1
answer
391
views
We are having a Gmail login issue with Indy TIdSMTP
I'm using the Indy components in C++Builder 11.3 to attempt to send an email from within our RAD Server project. For testing purposes, I wrote the 64-bit code below, and I'm getting an error that has ...
0
votes
0
answers
113
views
Indy IdHTTPWebBrokerBridge/TIdCustomHTTPServer threads keep on increasing
I have an TIdHTTPWebBrokerBridge class which descends from TIdCustomHTTPServer and overrides the DoCommandGet() method. Below is the basic code structure.
procedure TIdHTTPWebBrokerBridge.DoCommandGet(...
0
votes
1
answer
467
views
Delphi Indy IdTCPClient ReuseSocket is getting "Socket error # 10048 - Address already in use"
I have this simple code:
var
IdTCPClient1: TIdTCPClient;
IdTCPClient2: TIdTCPClient;
begin
IdTCPClient1 := TIdTCPClient.Create;
IdTCPClient2 := TIdTCPClient.Create;
IdTCPClient1.UseNagle :=...
1
vote
0
answers
380
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 ...
0
votes
1
answer
49
views
How to populate a box in an HTML page using the Post() function in Indy
How to select text from the dialog box about the month displayed on the website and then issue a command by pressing the 'Search' button?
I would like to use the Post() function in the Indy library ...
1
vote
1
answer
122
views
How to use TIdHTTPServer with visual components?
I have an app that uses TIdHTTPServer to run a simple HTTP server on port 80. I'm using the OnCommandGet event to get commands and return data using TClientDataSet.
It works, but the problem is, this ...
2
votes
1
answer
86
views
Authentication failure for AWS SMTP on Android 64
I have a Delphi 11 FMX app. Until recently I was using TLS 1.0 to connect to AWS SMTP. When I switched to TLS 1.2, Win32, Win64 and Android 32 continued to work correctly, but on Android 64 I am ...
2
votes
1
answer
305
views
How to receive text from Server to Client in Indy 10 TCP/IP in Delphi 7?
I am working on a chat application with Indy 10 in Delphi 7. Now, on the client side, Indy does not have an OnDataReceived or OnRead event, so how can I receive text from the server to the client?
I ...
0
votes
0
answers
65
views
Problem reconnecting SMTP on one TIdSMTP instance
I use TIdSMTP to send emails. There have been no problems with any server up until now, however, we recently encountered a server where on the second iteration of establishing a connection I get an ...
0
votes
1
answer
670
views
Encountering 'Socket Error # 10053' while transferring files using TIdTCPClient and TIdTCPServer
When attempting to send a file from a client to a server using TIdTCPClient and TIdTCPServer components in Delphi, I encounter a persistent issue. The server code is set to receive a file, but during ...
0
votes
1
answer
144
views
Slow emailing with Indy
After upgrade from Delphi 10.4 to 11.3 I got a strange problem with attachments in emails.
Send email from file directly from server where exe-file is running is fast
Send two attachments of 300 KB ...
0
votes
0
answers
186
views
Indy 10 and Xmailer : "Could Not Load SSL Library" or "SSL Error"
I am writing a program on Ubuntu that will send email on the Internet.
I am testing 2 tools/components to see which one works, but every time I try to send an email from my program, I get an error as ...
0
votes
1
answer
411
views
TIdDecoderMIME.DecodeString loses last decoded character
I want to decode a simple JWT Token in Delphi XE5, but when I do it as shown below, the decodedPayload is missing the final } of the JSON object.
What am I doing wrong?
function getIssuerFromToken(...
1
vote
1
answer
389
views
Usage of LF on ReadLn in TIdTCPServer and WriteLn in TIdTCPClient
In my TIdTCPServer.OnConnect event, I receive information using:
AContext.Connection.IOHandler.ReadLn(LF, 5000)
I've read that ReadLn() expects LF on the end of strings, so do I need to add a LF at ...
2
votes
1
answer
479
views
How to request insecure SSL with TIdHTTP?
I need to use TIdHTTP to request an HTTPS URL for an IP address on an SSL connection, so certificate validation will fail (if the peer even has a cert).
curl has the -insecure parameter and it works ...
0
votes
1
answer
121
views
TIdMessage.SaveToStream does not save properly
While trying to transfer an Imap TIdMessage from a Thread to the MainThread, I discovered that saving it to Stream and then loading it back does not work.
Log('Msg.MessageParts.Count='+Msg....
2
votes
1
answer
332
views
Delphi Indy10 IMAP Decoding MIME attachment
Using Delphi 11.
After downloading an email using TIdIMAP4, scanning through the MessageParts, how do I detect if a MessagePart contains a MIME encoded attachment, and how do I decode this into the ...
-1
votes
2
answers
114
views
IdhttpServer basic authentication not encrypted? [closed]
I have a IdHTTPServer with a IdServerIOHandlerSSLOpenSSL which requires a login during connect, by setting the AuthRealm.
This is intended to be used by a government organisation to view specific data....
1
vote
0
answers
105
views
Signing into a website using Indy TIdHTTP no longer works for me
Using Delphi and Indy's TIdHTTP component, I created a program simulating signing into a website.
Using the TIdHTTP.Get() method, I would get a sign-in <form> containing the email address and ...
-1
votes
1
answer
2k
views
How to fix - Must issue a STARTTLS command first
Note - I am not extremely experienced in Delphi coding, and have minimal knowledge of this subject I am attempting to fix.
My problem is that I am attempting to send an email to a user containing &...
0
votes
0
answers
61
views
Unicode POST parameters with Indy 10 and Delphi 6
I am using Indy 10 with Delphi 6 and until now managed to pass contents as UTF-8.
Unfortunately, params are parsed as ANSI, replacing, for example, ö with o when not the central european code page is ...
1
vote
1
answer
76
views
How to determine if TIdDNSResolver result are authoritative
I am using Indy's TIdDNSResolver to lookup DNS records. I have a number of DNS servers that I can try if I am not getting a result. (It is common for the first DNS server to be authoritative for ...
0
votes
1
answer
386
views
Delphi Indy 10 pdf attachment is unreadable
I am attempting to export a report as a PDF then attach it to an Email and/or MMS. I base64 encode the TFileStream to TStringStream, then attach it to an email but cannot open it. Using the same ...
0
votes
1
answer
121
views
Why does an Exception thrown in a thread screw up my UI?
I use a TThread to send emails using Indy. It works great, and by using a separate thread, I avoid my apps UI freezing while TIdSMTP sends.
The problem is, if an exception occurs during sending, a lot ...
0
votes
1
answer
234
views
TIdUDPClient.ReceiveBuffer with no delay
Using TIdUDPClient, my app continuously sends audio data via UDP to another PC running a TIdUDPServer, which is working well.
Currently, there is no return communication required, but I'm considering ...