Questions tagged [indy]

Questions related to the Indy (Internet Direct) open source networking library for Delphi, C++Builder, and FreePascal development environments. Not to be confused with the HyperLedger Indy distributed ledger/utility library.

Filter by
Sorted by
Tagged with
0 votes
1 answer
62 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 ...
Issam's user avatar
  • 145
0 votes
0 answers
45 views

Indy 10 OpenSSL load library error on MacOS

I'm using Delphi Alexandria on Windows 11 to develop a MacOS application in FMX. I'm trying to use OpenSSl; I have libssl.1.0.0.dylib and libcrypto.1.0.0.dylib in the directory. But I always have an ...
Hassan's user avatar
  • 3
1 vote
1 answer
121 views

How to use TIdHTTP to get json dynamically in code with Delphi?

When I do a GET request to "https://api.github.com/users/octocat" in Postman, then it works: But If I try to do it in Delphi using TIdHTTP using the following code: procedure TForm1....
Martin Kakhuis's user avatar
0 votes
1 answer
59 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 ...
Roland Bengtsson's user avatar
0 votes
0 answers
94 views

Delphi Indy NTLM on Windows 11 don't use good user

I have code that works well on Windows 10 and previous version and stop working on Windows 11. I use Indy with IdAuthenticationNTLM in my uses. here is my code: procedure SetIdHTTPSSL(AIdHTTP: TIdHTTP)...
Hugues Van Landeghem's user avatar
0 votes
1 answer
41 views

What is the purpose of the TIdWhoIsServer component from Indy?

I saw Indy has a TIdWhoIsServer component. What is it used for? Can it be used to do WhoIs lookups? Or what's the purpose of this component? I tried to find documentation on it, but I couldn't really ...
Shaun Roselt's user avatar
0 votes
0 answers
64 views

Manage TStringList who is send at TcpServer New Connections

i have a question. Actually i send a TStringList as TStringStream for every new connection on TcpServer using code: ConCli.DBS := TStringStream.Create; Database.SaveToStream(ConCli.DBS); ConCli....
Luiz Felipe's user avatar
0 votes
1 answer
62 views

Indy SOCKET ERROR #1 on MacOS, using IdIcmpClient, works fine on Windows

Hey all im getting "SOCKET ERROR #1" on macos using indy, this code works fine on Windows. Using FMX here. Using macOS Sonoma Firewall is turned off on the macOS host. procedure ...
Gorhin Stroebel's user avatar
0 votes
0 answers
23 views

TWebbroker server has trouble waking up after a long night (Connect Closed Gracefully)

I know that I'm going to do a poor job describing this issue. But I have noticed this occurring several times now (by accident). While working on my TWebbroker Standalone application, I sometimes ...
John Cox's user avatar
0 votes
1 answer
73 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(...
RickMorpheus's user avatar
2 votes
0 answers
93 views

How can I Trace Route using TIdTraceRoute from Indy?

Whenever I try to Trace the route of a Host, then I get the following error: raised exception class EIdSocketError with message 'Socket Error # 10040 Message too long.' These are my component design-...
Shaun Roselt's user avatar
0 votes
0 answers
53 views

How migrate key reading DH-Pem in Delphi-Indy-SSL to C# on .NET 6.0?

dhparam.par -----BEGIN DH PARAMETERS----- ...== -----END DH PARAMETERS----- Indy OpenSSL: object IdSSLIOHandlerSocketOpenSSL1: TIdSSLIOHandlerSocketOpenSSL Destination = 'smtp.server:587' Host = '...
mih's user avatar
  • 81
-1 votes
1 answer
51 views

Why is TIdHTTP.Head() generating an 'HTTP/1.1 406 Not Acceptable' exception?

I'm trying to use TIdHTTP.Head('https://www.myurl.com/myfile.zip'), just to get the file size before downloading it. I get the file size so I can open multiple threads downloading parts of the file in ...
delphirules's user avatar
  • 6,573
1 vote
1 answer
87 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 ...
PSDEVS's user avatar
  • 79
0 votes
0 answers
72 views

Access violation when freeing Indy SSLIOHandler

Delphi 11.3 - default Indy components that come with this Delphi version. I have a DelphiMVCFramework REST API server using SSL. In my client application, I use the TRestClient object from ...
jdetaeye's user avatar
  • 183
1 vote
0 answers
113 views

How to upload Image completely using TIdFtp

I'm trying to upload an image via TIdFtp from Delphi, but some part of the uploaded image is white. The uploaded image is like below: TransferType is set to ftBinary. I think it's not related to ...
Holy Thirteen's user avatar
1 vote
1 answer
120 views

"Server-sent events" with Delphi and IdHTTPServer

With KeepAlive=True and setting header to 'Content-Type: text/event-stream' 'Cache-Control: no-cache' can the example at Delphi video streaming Http Server be adapted to implement "Server-sent ...
R.Schirru's user avatar
0 votes
0 answers
132 views

Delphi 11.3 Windows app with Indy and digest authentication fails intermittently

I'm currently writing code for interfacing with a biometric device which requires digest auth in some requests. I wrote a simple app for testing, which works well in my PC and others, but there are a ...
ogalonzo's user avatar
0 votes
1 answer
15 views

Indy Client TIdHTTP is causing error ws2tcpip.h(817): call to 'memcpy' is ambiguous

I am using C++Builder 11 for a 64bit VCL Windows app. My program uses a 3rd party component name FlexCompress that has a function named memcpy listed in a machine generated header .hpp file. When I ...
WorldTalk's user avatar
-1 votes
1 answer
362 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 &...
Eclipse's user avatar
  • 21
2 votes
1 answer
95 views

Correct way to read live camera stream using Indy TIdHttp

I have an app written in Delphi 11. I have used a TIdHttp client to receive a live stream from a camera. The data is received in the OnWork event. My code looks something like this procedure ...
Tim's user avatar
  • 81
1 vote
1 answer
41 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 ...
Rob Lambden's user avatar
  • 2,200
0 votes
1 answer
57 views

Testing Availability of Http service 'http://localhost:21012/'

Some XmlRpc server may be installed by a web application and I am searching to test avaiability of corresponding service. Windows 10, Delphi 11, Indy 10.6 Var WplHTTP: TIdHTTP; RequestBody: ...
Jean-Paul 's user avatar
0 votes
0 answers
31 views

Unresolved external '__fastcall Idsmtp::TIdSMTP::~TIdSMTP()'

I have installed RAD Studio XE (C++Builder XE). When compiling a project, I'm getting an error: [Linker Error] Unresolved external '__fastcall Idsmtp::TIdSMTP::~TIdSMTP()' TIdSMTP is available in ...
user369287's user avatar
0 votes
0 answers
60 views

TIdHTTP, TIdCookingManager - programmatically accept cookies from Google Finance

Delphi XE7, Indy 10.6.0.5169 I am creating the components like this: FHTTP := TIdHTTP.Create(NIL); FHTTP.Request.Connection := 'close'; FHTTP.IOHandler := ...
Gabrielle Goldberg's user avatar
1 vote
0 answers
45 views

TIdUPDServer listening on IPv6 not working

Am I correct that the following code will enable a TIdUDPServer to listen on all IPv4 and IPv6 interfaces? with UDPServer.Bindings.Add do begin IPVersion := Id_IPv4; IP := ''; Port := FPort; end;...
Ross's user avatar
  • 157
1 vote
1 answer
100 views

Getting spaces after upgrading from Indy 9 on Delphi 6 to Indy 10 on Delphi 11

I have migrated from Delphi 6 to Delphi 11 (64 bit edition) and in that I'm using the Indy and ZLib components. I have migrated from Indy 9 to Indy 10, using the component to post API and before that ...
sn_na_v's user avatar
  • 31
0 votes
1 answer
104 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 ...
delphirules's user avatar
  • 6,573
0 votes
0 answers
149 views

Is it possible to send HTTPS posts in Delphi using Indy?

Is it possible to do https post requests in delphi? I tried a few tricks from the web to no avail. I have no experience in this area other than assembling a WSN using indy and delphi a few years ago (...
miodrag's user avatar
  • 99
0 votes
1 answer
85 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 ...
Ross's user avatar
  • 157
0 votes
1 answer
204 views

Why does sending UDP broadcast packets with TIdUDPClient works only on some devices?

I am trying to send UDP packets in my local network to all devices and I tried to use the same (FMX) application to send the packets from different devices. But for some reason it works only from some ...
StanE's user avatar
  • 2,742
0 votes
1 answer
200 views

I'm getting "Socket Error # 10054 Connection reset by peer" in Indy using TIdHTTP to GET an HTTPS url

I have what seems to be a simple task - to make an HTTPS request, but I encountered an error: Socket Error #10054 Connection reset by peer Moreover, this error does not occur every time; out of 30 ...
Aidyn's user avatar
  • 5
0 votes
1 answer
96 views

INDY: Sending a file fragment as response to an HTTP GET command in TIdHttpServer.OnCommandGet

I am developing a tiny Web Server that should allow Download Managers to make multiple connections and download a huge file in multiple segments simultaneously. I can detect that the download manager ...
HeartWare's user avatar
  • 7,510
2 votes
1 answer
117 views

TIdHTTPServer altering HTML

I'm using the TIdHTTPServer to host a large set of existing HTML files. However, I have a problem where it's returning altered HTML. Mainly, double quotes (“) are being replaced with jibberish like â€...
Jerry Dodge's user avatar
  • 26.9k
0 votes
2 answers
87 views

How can we do an IdFTP.Get without blocking the UI?

I am browsing and listing content of a small FTP folder using IdFTP. I would like that with a double click the user could be able to start the download of the file. I noticed that FTP.Get is working ...
realtebo's user avatar
  • 24.3k
1 vote
1 answer
141 views

Delphi IdFTP: how to check type of file entry?

I actually did this FTP.Connect; FTP.Login; FTP.List; StatusBar.Panels[0].Text := 'Connessione FTP riuscita'; For I := 0 to FTP.DirectoryListing.Count - 1 do begin if (FTP.DirectoryListing[I]....
realtebo's user avatar
  • 24.3k
0 votes
2 answers
830 views

How to send embedded base64 image (HTML) by email correctly?

I want to use Indy to send emails with embedded images, and for those cases the HTML template must have the base64 converted image. Sample HTML template: <html> <head> </head> &...
snowdev's user avatar
1 vote
1 answer
81 views

Start TLS after connection has been established in TIdCmdTcpServer

We are using a TIdCmdTCPServer with a TIdServerIOHandlerSSLOpenSSL server-side and TIdTCPClient with TIdSSLIOHandlerSocketOpenSSL client-side in Delphi 10.1. I can successfully establish an encrypted ...
christian's user avatar
0 votes
0 answers
150 views

Communicating between Delphi and Python

I am building an application. Client side is written in Python but server side is written in Delphi. I am using indy in the Delphi side. I can connect to Delphi side but it doesn't write the message ...
Ali Eren Altındağ's user avatar
1 vote
1 answer
314 views

I receive a unsupported media type error when doing a rest request using oauth

I'm using delphi 11.3 to make a rest request using oauth2. I get the token, then I need to call again another api to send my json and the token. I'm receiving "unsupported media type" can I ...
lorife's user avatar
  • 371
-1 votes
1 answer
210 views

Delphi 7 Indy connect with API OpenAI chatGPT

Can't connect with https://api.openai.com/v1/chat/completions from Delphi 7 with TidHTTP I have in the project directory ssleay32.dll and libeay32.dll they are tested with other projects and I get an ...
Rogan's user avatar
  • 11
0 votes
0 answers
123 views

Dynamically linking OpenSSL on iOS simulator

I'm trying to get OpenSSL working for the iOS simulator. I'm on Delphi 11.2. I'm following the steps described in this post: How to statically link Indy SSL files? I have libcrypto.1.0.0.dylib and ...
5eb's user avatar
  • 15.1k
0 votes
2 answers
570 views

Delphi 11 and Indy HTTPS : Error Could not load SSL Library

I worked with RAD Studio Delphi Enterprise 10.2 (Tokyo) and its preinstalled Indy implementation. To connect to an HTTPS server using TIdHTTP.Get(), I created my own class derived from TIdHTTP, as ...
user16413998's user avatar
0 votes
0 answers
99 views

Program closes when trying to connect to IMAP

I'm having some strange IMAP library behavior. What I mean is: I'm trying to write my own service that will connect to a mail service and download some attachments from emails. Unfortunately, I ended ...
blackspaceghost's user avatar
1 vote
1 answer
102 views

Regression in FTP Client implementation using indy since upgrading to Delphi 11

I'm having issues with an FTP driver we have that's using indy's idFTP. The regression appeared in our software when we upgraded from delphi 10.2 to delphi 11. The connection and authentication seems ...
mathieu's user avatar
  • 235
0 votes
1 answer
140 views

FMX, Delphi, TIdTCPClient

I have created two TIdTCPClient objects and connected them to the same server. The server receives bytes from one client and sends them to the other. This client sends it to the first client and so on ...
Ильдар Ильясов's user avatar
4 votes
1 answer
779 views

"Connection Closed Gracefully." after IndyFtp "PUT" command (Delphi-Indy FTP)

I'm using Indy's TIdFTP to send zipped files to a server via FTP from a Delphi app. The application is used on hundreds of customers' computers. Three customers are facing the same problem. Just after ...
Holy Thirteen's user avatar
0 votes
1 answer
37 views

How Idmessage Get TextBody from openpgp encode message with Delphi?

content type is Content-Type: multipart/mixed; boundary="nm_5da15248d437196b097ad4ae2ba7" how can i do with Inmessage to Get Text? the correct way to check mail content
陈发条's user avatar
1 vote
0 answers
93 views

Why am I getting 403 error from Google Storage for this Shopify response using Indy

I have an authenticated url from shopify, where the results from a bulk operation are stored. I am getting a 403 error from indy trying to GET this data. Please let me know what I'm doing wrong. The ...
Joao's user avatar
  • 23
-1 votes
1 answer
62 views

TClientSocket does not connect if I try to connect it in TIdTCPServer::OnConnect event

I am using Embarcadero C++Builder and I have Indy 10.6.2.0 installed. I have 4 components on my form: TIdTCPClient *Client; TIdTCPServer *Server; TClientSocket *ClientSocket; TServerSocket *...
Maxim Ivanov's user avatar

1
2 3 4 5
42