Questions tagged [indy10]

Indy 10 is a reference to a specific version of Indy.

Filter by
Sorted by
Tagged with
0 votes
1 answer
58 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....
Bart Kindt's user avatar
2 votes
1 answer
54 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 ...
Bart Kindt's user avatar
-1 votes
2 answers
61 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....
Bart Kindt's user avatar
1 vote
0 answers
67 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 ...
Tomas Trhlik's user avatar
-1 votes
1 answer
92 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
-1 votes
0 answers
63 views

Indy POP3/IMAP code I used in other programs is not working now

I am redoing code I used in an earlier version of my program. The code pulls email off our company mail server CC Mail. procedure TFrmMainLog.GetEmail; var ErrorMsg : String; SearchInfo : ...
S bossen's user avatar
0 votes
0 answers
16 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 ...
Paul's user avatar
  • 25.9k
1 vote
1 answer
38 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,175
0 votes
1 answer
109 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 ...
fourwhey's user avatar
  • 490
0 votes
1 answer
101 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,463
0 votes
1 answer
75 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
86 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,474
0 votes
0 answers
31 views

TIdSoapXMLDOM thread safety concerns and unusual errors in Delphi 10

Consider the following: There's a class procedure that gets called upon receiving a HTTP/SOAP request: class procedure RunServiceFunction(const SoapService: TSoapService; const Req: ...
T.S's user avatar
  • 355
0 votes
1 answer
27 views

How stop (cancel) a download using TIdHTTP and keep connection

There is a good answer on half of my question: How stop (cancel) a download using TIdHTTP But if I use Abort, then sometimes the GET request will still continue to run. If I use Disconnect() then the ...
Vadim Mescheryakov's user avatar
1 vote
1 answer
93 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
0 answers
23 views

netconf protocol using Indy IdTCPClient in CppBuilder

How do I start a netconf session using Indy's TIdTCPClient (or, if that is not the correct library to use, please tell me what I should be using instead)? I am attempting to write a FireMonkey ...
Brian P.'s user avatar
  • 216
0 votes
0 answers
75 views

Delphi memory leak UnicodeStrings (Resolved) [duplicate]

I run a small Windows program which uses Indy10 server and client and processing data. Compiled using the latest 11.3 compiler. When I close the program, in the memory loss report (which I have ...
Bart Kindt's user avatar
0 votes
1 answer
66 views

Android: not downloading all files from an FTP server when using Indy TIdFTP component

I have implemented the following code to download files from an FTP server that are inside folders and subfolders. void TFAct::Download() { try { Ftp->ChangeDir("/"); //...
neg1414's user avatar
  • 25
0 votes
1 answer
46 views

Delphi 2007 Updating a console application from a datamodule using TIdHTTPServer within httpServerCommandGet

We have the following class we want to use to update the console from within a procedure on a datamodule using Indy. TLog = class(TIdNotify) protected FMsg: string; procedure ...
The Pudding Race's user avatar
0 votes
0 answers
129 views

How can I connect to VNC server using Delphi and Indy?

I have been trying the initialize a connection to VNC Server 7.0.1 using the following code in Delphi and Indy 10: IdTCPClient.Host := myIP; IdTCPClient.Port := 5900; IdTCPClient.Connect; On Connect()...
Joyston's user avatar
  • 806
0 votes
1 answer
101 views

Can't connect to port 8080 using TIDHttp

Using Delphi 11. I have two http servers running on my machine ; one on 80 port and other on 8080 . I can sucesfully use TIDHttp to connect on the 'regular' server on 80 port, like so : idhttp1.get('...
delphirules's user avatar
  • 6,463
0 votes
1 answer
91 views

Delphi 2007 - Compile errors on updating Indy from 10.5.1.1 to 10.6.2.0

I recently updated the stock Indy that installs with Delphi 2007 (I think it is 10.5.1.1) with 10.6.2.0, which I downloaded from GitHub. I'm now getting a compile error: EAttachmentFileNotFound....
rossmcm's user avatar
  • 5,493
0 votes
1 answer
65 views

How to display messages in every Indy event?

I am working on a C++ Builder application using the Indy library. There are two main objectives: To perform a forward between a server and a client. To visualize the traffic and its decoding on a ...
Beto's user avatar
  • 63
1 vote
1 answer
219 views

Indy 9 to Indy 10 conversion

I have found an old .dpr file on the internet, the file is basically a Delphi 7 project from 2008 about server-emulation of an old game. I tried to compile the file using RAD Studio, but it seemed ...
Meskanova Gin's user avatar
1 vote
1 answer
145 views

TIdHTTP slow downloads

I use TIdHTTP to download updates of my application. The install file is about 80 mb. It works, but I noticed that somehow, the download speed is way slower than the same link downloaded directly from ...
delphirules's user avatar
  • 6,463
0 votes
0 answers
76 views

Using TIdHTTP to download file using multiple threads [duplicate]

I'm trying to implement a multi-threaded download file procedure using TIdHTTP. To achieve this, I'm using the TIdHTTP.Request.Range property to set the part of the file that will be downloaded by ...
delphirules's user avatar
  • 6,463
0 votes
1 answer
159 views

How to download via TIdHTTP parts from multiple servers?

Currently I use TIdHTTP in Delphi 11 to automatically download updates of my software. My installer is relatively big (about 100 MB) and the download takes a couple of minutes or even more. Supposing ...
delphirules's user avatar
  • 6,463
0 votes
0 answers
283 views

Adding SSL encryption to TidTCPServer/TidTCPClient

I'm adding SSL encryption to an existing project in Delphi 7 using a TCP Server and Client with no certificates. I've attached the required SSL IOHandlers in each program, set the PassThrough to False ...
Ross's user avatar
  • 157
0 votes
1 answer
95 views

Any chance for Indy 10 to output Unicode with Delphi 6?

I gave a try for Indy 10 on Delphi 6. The problem is - with old Indy I was able to output Unicode through UTF-8 as AnsiString by setting proper encoding in ResponseInfo.ContentType. Now I lost the ...
Paul's user avatar
  • 25.9k
0 votes
1 answer
90 views

Delphi Request.ContentFields.Values['something'] is not showing values on MIME data

In TWebModule1.WebModule1WebActionItem1Action(), using Request.ContentFields.Values['content'] or any name, I cannot get any values from the POST, but if I use Request.ContentFields.DelimitedText, I ...
Int20h's user avatar
  • 19
2 votes
2 answers
213 views

How to make TIdStackLocalAddress work on Android?

Modeled on @Remy Lebeau's very helpful code example in this SO item, I have the below function, which works as expected in Windows 10 to return; e.g.: No of Addresses: 4 IPv4 Addresses: IP ...
Terry Peterson's user avatar
-1 votes
1 answer
2k views

HTTP post 'error:1409442E:SSL routines:ssl3_read_bytes:tlsv 1 alert protocol version'

i have googled/tested various option changes but am still getting the error and guessing that i have something off. in a dll this is the code. i have used the restdebugger from embarcadero to test ...
RDT's user avatar
  • 1
0 votes
0 answers
65 views

Ethernet header is corrupted when sending UDP data using Indy 10

The application sends UDP data to 192.168.178.24: var LoggerIP : String ; Code_String : String ; i : Integer ; Errorpos : Integer ; begin LoggerIP := '192.168.178.24' ; //LoggerIP := Edit1....
BrianS's user avatar
  • 1
0 votes
0 answers
184 views

Why is sending an email using Indy10 and OpenSSL using TLS 1.0 despite me specifying TLS 1.2?

I am using Delphi 10.4.2, Indy 10.6.2.0, and OpenSSL DLL versions 1.0.2u. I am trying to add email notifications to a very large existing product. I first created an email class in a sample project ...
dallin's user avatar
  • 8,835
1 vote
0 answers
320 views

Using Windows system trust store to validate server certificates using Indy/OpenSSL

I'm using Delphi 10.4 with Indy 10 updated from GitHub at the end of August. I'm looking for the best way to let OpenSSL validate a server certificate using the Windows system certificate stores. I’m ...
Adrien Reboisson's user avatar
0 votes
2 answers
223 views

Changes to Indy10 between Delphi 2007 and Delphi 11.1 [closed]

I have some really old code that was compiled with the version of Indy10 that was included in Delphi 2007. Having recompiled this in Delphi 11.1 the TCP Clients that should connect to the server ...
mdevalle's user avatar
0 votes
1 answer
118 views

Indy10 problem connecting to TCP Server using a host name pointing to an IPv6 address

I've put the following in the Windows HOSTS file: fe80::a5c6:d354:8e27:9f79%16 ip6test I can ping ip6test in Windows, and I can connect to a server via TIdTCPClient with the IPv6 address above in ...
Ross's user avatar
  • 157
0 votes
0 answers
61 views

IdTCPClient is very slow with large StringStream

Recently we added base64 encoded pdf file to an HL7 message as a last OBX segment which added 2.5MB to the message (which was only 2kb). That caused tremendous slowing of TCPClient write speed and ...
Senai's user avatar
  • 13
0 votes
0 answers
259 views

TIdHTTP POST long strings issue on Delphi [duplicate]

I need to send a multipart/form-data to a webservice via TIdHTTP POST and get a JSON as response. I'm using de code bellow: procedure TForm1.btnExecutarClick(Sender: TObject);var Data: ...
Rondinelle Brazolino's user avatar
0 votes
1 answer
67 views

Problem with receiving mails from the SENT folder

if ( IdIMAP1->SelectMailBox( "SENT" ) ) { TIdIMAP4SearchRec sr[1]; sr[0].SearchKey = skAll; IdIMAP1->UIDSearchMailBox( EXISTINGARRAY(sr) ); int ile = IdIMAP1->...
Jacek's user avatar
  • 63
0 votes
1 answer
73 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 ...
Roddy's user avatar
  • 66.7k
0 votes
0 answers
68 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 ...
Martin Nijhoff's user avatar
0 votes
1 answer
450 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&...
Martin Nijhoff's user avatar
1 vote
3 answers
224 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 := ...
Alan.F's user avatar
  • 21
0 votes
0 answers
299 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: "...
Shraga Milon's user avatar
0 votes
1 answer
204 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 ...
Erik Ferney Cubillos Garcia's user avatar
0 votes
0 answers
126 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?
delphirules's user avatar
  • 6,463
1 vote
0 answers
2k 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 ...
sieward's user avatar
  • 11
2 votes
2 answers
987 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 ...
Reallyethical's user avatar
1 vote
0 answers
554 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 ...
Yogi Yang 007's user avatar

1
2 3 4 5
17