Questions tagged [indy10]
Indy 10 is a reference to a specific version of Indy.
768
questions
0
votes
1
answer
21
views
How to change CharSet when using Indy TIdHTTPServer:ServeFile()?
My Javascript, HMTL etc files are being served using charset ISO-8859-1, but I need then to have charset=utf-8. I've tried using AResponseInfo->CharSet = "utf-8" but it seems to make no ...
0
votes
0
answers
27
views
How to install Indy10 for BCB6?
I'm new here and I want to use Indy10 on C++Builder6. I tried to run Fullc_6.bat to compile, but it doesn't work. I thought it was because there was a space in my BCB6 installation path, so I modified ...
0
votes
0
answers
40
views
TIdHTTP::OnAuthorization in multithreaded application
I'm writing a DLL in C++Builder XE6 to communicate with a REST server. The DLL creates a TThread-derived thread to do GET requests in the background, using TIdHTTP. The DLL also exports functions to ...
0
votes
1
answer
94
views
How to handle authentication with TIdHTTP
I'm using C++Builder XE6 and TIdHTTP to communicate with a REST server in a Windows application.
I need some advice on how to handle authentication.
Given the following code:
#include <IdHTTP.hpp&...
1
vote
3
answers
68
views
TCPServer.Contexts.LockList : is it safe to do that?
Until now, I was calling the following function every second :
function TForm1.ListeConnecteMaj():Boolean;
var
i : integer;
List : TIdContextList;
Client : TSimpleClient;
begin
List := ...
0
votes
0
answers
72
views
How to save multiple files with TIdHttpServer?
I'm using Delphi 10.4.2 and use TIdHTTPServer to receive data.
The client want to attach one or more an image files with this data. Something like this:
POST Multipart/form-data:
Data fields:
"...
0
votes
1
answer
62
views
Indy 10 error when try to install a new version in Delphi XE3
I'm trying to install a new version of Indy 10 in Delphi XE3.
I'm using the Fullc_XE3.bat to compile the component, it works and finish OK, however, when I try to install dclIndyCore170.bpl I get the ...
0
votes
0
answers
57
views
What to set TIdSMTP.MailAgent to?
What should I set TIdSMTP.MailAgent to? Should I put my own app name, or mimic some 'famous' mail client (like Thunderbird)?
Does this make any difference in terms of spam score?
1
vote
0
answers
464
views
How to upload file in multipart/formdata using Delphi TIdHTTP.Post rest API
In the Netherlands (in future UK too), we have a govermental API service for calculating depositions (AERIUS). This is based on an HTTP REST protocol using the JSON format. I'm using the Delphi Indy ...
0
votes
2
answers
296
views
Unknown Protocol error with Indy SSL on Delphi 11
When using the Indy TCP Server with the IO handler we get the following error.
routines:SSL23_GET_CLIENT_HELLO:unknown protocol
This error looks similar to the SSL Libary issue 10.3.3 however those ...
1
vote
0
answers
194
views
Connection error with TIdHTTP in Delphi application. How to solve it?
I have a software which is working faultlessly for 2 years now. This software connects to our remote server every 5 days to check for version updates as well as users license status.
But from ...
0
votes
1
answer
105
views
Managing Exceptions in Indy TIdTCPServer and TIdTCPClient
Managing Exceptions in Indy TIdTCPServer and TIdTCPClient
I have read in other post of this forum and in other places that in Indy components the exceptions (descendant from EIdException) are ...
0
votes
1
answer
756
views
Delphi XE + Indy 10.6.2.0: TLS v1.2 hangs on IdSMTP.Connect;
When trying to connect to an SMTP server with TLS v1.2 method and port 465 used, my program hangs infinitely. I created a test mail account on mailbox.org (TLS 1.2 obligatory) and tried with the ...
0
votes
0
answers
160
views
Indy/Open SSL not firing OnVerifyPeer event
We're using Open SSL 1.0.2.14 with a PKCS12 certificate to secure a TIdHTTPServer. it connects securely and works well in every way except one. it won't fire the OnVerifyPeer event.
I wonder if that'...
0
votes
1
answer
48
views
What is Indy WriteLn and ReadLn string max length?
Is there a limit in the length of the string sent and read with the Indy methods WriteLn and ReadLn?
1
vote
1
answer
91
views
Delphi Indy HTTPServer: Write text in Chunks possible?
Is it possible to send big amounts of text (csv database export) through an Indy HTTP Server in chunks to a requesting client to avoid hitting memory restrictions?
I am implementing a REST interface ...
0
votes
0
answers
420
views
Indy 10, could not load OpenSSL library on Windows 11
I am building my VCL application on RAD Studio XE5 and I am using Indy 10 library (IndyCore190.bpl) with libeay32 and ssleay32 (1.0.2u) to connect to the server.
Application works on Windows 10 and is ...
0
votes
2
answers
143
views
How to detect a connection failure in Indy TCP Client
I have made a client and a server using Indy TIdTCPClient and TIdTCPServer in C++Builder 11 Alexandria.
I can start the server and connect the client to it correctly, but if I set the server ...
0
votes
1
answer
376
views
Can't connect to Indy TIdHttpServer with TLS
I'm writing a test Delphi 10.4 Win32 application that uses TIdHTTPServer and TIdServerIOHandlerSSLOpenSSL from Indy 10.6.2.0 installed by Delphi 10.4, using a port on localhost for the purposes of ...
0
votes
1
answer
90
views
Indy 10 - add cookies manually
I can export my cookies using "EditThisCookie" for Google Chrome.
The export looks like this:
"domain": ".stackoverflow.com",
"expirationDate": 1698322697,
&...
3
votes
1
answer
226
views
Delphi Win32 TXMLDocument can't be instantiated and used from a thread? [duplicate]
I've been working with an Indy TIdTCPServer object and instantiating a TXMLDocument object instance during the TIdTCPServer.OnExecute event. I find it quite surprising that I get an exception when ...
0
votes
1
answer
450
views
TIdHTTP Post to API and save response as a .pdf file
I'm calling an API URL with some parameters according to the documentation provided.
The way the API is set up, the response should be an auto-download of a .pdf file.
The parameters are:
number - ...
0
votes
0
answers
172
views
How to send a push notification to APNS via TIdHttp indy component?
I have been using Indy's TIdTCPClient component successfully for quite a while now to send push notifications to my mobile app users. Lately, due to new push notification requirements of Apple, this ...
0
votes
0
answers
58
views
Intermittent disconnect failure in IdTCPServer under Linux
I had to start a new Question as the system refuses me to re-open the original question.
The IdTCPServer intermittently fails to disconnect a Client, that is, it stays in the Context list.
It happens ...
0
votes
1
answer
140
views
IdHTTPServer hangs on Shutdown in Linux
Under Linux, TIdHTTPServer hangs on shutdown (IdHTTPServer1.Active := false) due to an un-ending loop in TIdScheduler.TerminateAllYarns().
The problem is permanent (on my development PC) and only if ...
2
votes
0
answers
167
views
Delphi Indy10 TCPServer fails to disconnect under Linux
I have a Server using TIdTCPServer.
During initial connection of a client, I assign a local DTBClient to it as follows:
class procedure TDTBEventHandlers.IdTCPServer1Connect(AContext: TIdContext);
var
...
1
vote
1
answer
72
views
Read email body from a certain IMAP mailbox
I'm trying to find a way to read only text from an email. Unfortunately, in Memo1 there is still information about attachments as well as all information about the structure of the e-mail.
if ( ...
1
vote
0
answers
87
views
Delphi Indy 10 client has 10 second delay when upgrading from 10.2 to 10.4
Our company develops a Point of Sale system that supports various credit card transation providers. It has a JavaScript web client front end and a Delphi server back end. It uses Indy 10 heavily for ...
2
votes
1
answer
321
views
Delphi Indy10 required SSL libraries under Linux?
Using Delphy 10.4:
I am trying to start a IdTCPServer with IdServerIOHandlerSSLOpenSSL.
Under Linux, I get a "EIdOSSLCouldNotLoadSSLLibrary; Could not load SSL library."
Under Windows, this ...
0
votes
0
answers
124
views
Using Indy units to do File encryption?
I am in the process of converting a database server from Windows to Linux using Delphi 10.4.
The Server uses the Indy units for the TCP encryption to the Clients.
But all data saved on disk is using ...
1
vote
0
answers
160
views
Indy 10.6.2 Proxy Server and browser error ERR_HTTP2_PROTOCOL_ERROR
I built proxy server application using (Delphi 10.4) listens to local port 8080, all browser request passes thro my proxy server, but in a lot of cases browser throws error in console ...
1
vote
2
answers
373
views
Delphi Indy 10 IdHTTPProxyServer Modifying Headers
I am trying to develop a CORS proxy server in Delphi XE2 using Indy 10 so that I can get around the issue of embedding sites into an IFrame where sites have added X-Frame-Options to the response ...
3
votes
2
answers
625
views
Indy 10.6.2 idFTP in Delphi 7 - problem with native symbols in filenames while receiving files - probably bad behavior of DefStringEncoding
I'm using Indy 10.6.2 together with Delphi 7 and Windows 10 64-bit with Polish language.
I run an FTP server: FTPServer: TIdFTPServer, and by using FTPClient: TIdFTP I am trying to get a file ...
0
votes
1
answer
100
views
Indy 10 TIdSMTP Messaging in BCB 6
In an application developed with Borland C++Builder 6, I am using TIdSMTP and TIdMessage to send email messages. Due to problems for external applications with the usual mail server in the ...
1
vote
1
answer
2k
views
TIdSMTP : How to fix the error SSL negotiation Failed
I've been using Indy to send emails for ages and it always worked well. Currently i'm using Delphi 10.4, with the Indy version that comes with it.
Today when i tried to use a specific server, even ...
1
vote
1
answer
179
views
Indy TIdFTP "Out of Memory" error when downloading a large file
I am using TIdFTP (Indy 10.6) to upload a large file that exceeds 1GB.
When I want to download that file, I get an error message saying "Out of Memory".
Here is my code:
var
FTPfile: ...
2
votes
1
answer
864
views
Even if SslOptions are set i keep having "Socket Error # 10054 Connection reset by peer." in Indy using TIdHTTP doing get from https url
I am using TIdHTTP to get from a https URL, my code works fine until http is used, but on https i have
Socket Error # 10054 Connection reset by peer.
In many SO answers I Read about TLS 1.0 being ...
1
vote
1
answer
402
views
How can I use Indy to send messages to multiple email addresses that are stored within a TListView component?
I am trying to take a list of emails from within a TListView and assign them to TIdMessage.Recipients.EMailAddresses. I'm trying to take the ListView captions and assign them as recipient email ...
1
vote
1
answer
198
views
Receiving Unicode strings with Indy 10
I am using the latest Delphi 10.4.2 with Indy 10.
In a REST server, JSON commands are received and handled. It works fine except for Unicode.
A simple JSON like this:
{"driverNote": "...
0
votes
0
answers
213
views
Indy TLS Server "No shared cipher" using ECDH Keys
Hoping someone out there can help me with this one. Simple TIdHTTPServer with OpenSSL support used to decode TLS traffic from a client using ECDH-based keys.
Server key created with the following ...
1
vote
1
answer
91
views
How to use TIdWhois with SOCKS proxy
I'm getting whois information using this code:
IdWhois1.Host := 'whois.nic.tld';
ServerResultStr := IdWhois1.WhoIs('google.tld');
But I need to query the whois server (port 43) using a SOCKS proxy ...
0
votes
0
answers
113
views
SSL_Connect() issue using Indy10 library in Delphi
I am using RAD Studio 10.4.
I am trying to implement TLS (Transport layer Security) through Indy10 in my application, and am facing issues in the ssl_connect() function, as it returns 0. I am using ...
1
vote
1
answer
203
views
Send bytes using Indy 10
I'm trying to send bytes between two delphi 2010 applications using Indy 10, but without success. Received bytes are different from sent bytes. This is my example code:
Application 1, send button ...
0
votes
0
answers
340
views
Indy TIdHashMessageDigest5 HashStringAsHex compile time error: Undeclared identifier: 'HashStringAsHex'
Using: D7
uses SysUtils, StrUtils, IdHash, IdHashMessageDigest;
..
var
idmd5: TIdHashMessageDigest5;
h, v: string;
begin
idmd5 := TIdHashMessageDigest5.Create;
try
h := idmd5....
1
vote
1
answer
124
views
How can I get just the expiry date of a domain name using Indy in Delphi 10.3.3 Pro?
How can I get just the expiry date of a domain name using Indy's TIdWhois component?
I don't want to get the full WHOIS data, but only the expiry date.
I used this code:
IdWhois1.Host:= edit1.Text;
...
2
votes
1
answer
192
views
Can't fetch email from gmail using Indy
I use TIdPOP3 a lot, and it works great, except for GMail accounts.
Somehow it never works. I tried different combinations and ports, with and without SSL, and it always returns different errors.
My ...
1
vote
1
answer
160
views
Delphi - how to create folder by Indy on my HTTP page
Can anybody help me with folder creation on my HTTP server (It is SanDisk Connect WiFi)
SanDisk has a own address : http://172.25.63.1/myconnect/
I am able by Indy from Android to do follow :
...
0
votes
0
answers
107
views
TIdHTTP.Get IPv6 - Cannot assign requested address
Using a recent Indy10 and TIdHTTP.Get with an http:// URL containing an IPv6 address in square brackets, returns Socket Error # 10049: Cannot assign requested address. The URL works in the Chrome ...
1
vote
1
answer
216
views
How to determine if a server is only accessible using IPv6
Using Delphi 7 with Indy10, I need to create an IPv6 to IPv4 proxy for a service that doesn't support IPv6. I can manage that fine. The only issue I'm facing is, if they enter a domain name rather ...
1
vote
1
answer
155
views
Is TIdHTTP threadsafe?
I'm using TIdHTTP in my class to handle web APIs (TWebAPI). Since it might happen that this class is used in a TIdHTTPServer.OnCommandGet event handler, I need to make sure that TWebAPIis thread safe.
...