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.

Indy (Internet Direct) is an open source networking library for Delphi, C++Builder, and FreePascal development environments. It supports client and server implementations of TCP, UDP and RAW sockets, as well as over 100 higher level protocols. Some of the popular supported protocols include: SMTP, POP3, IMAP, NNTP, HTTP.

Indy's home page: http://www.indyproject.org


Do not confuse Indy (Internet Direct) with the HyperLedger Indy distributed ledger/utility library for HyperLedger. Please do not use the tag for topics related to HyperLedger Indy, use the tag instead.

2074 questions
9
votes
1 answer

IdHTTP + SOCKS + Socks5

I'm getting a general Indy error when using the IdHTTP client component in conjunction with a SOCKS5 proxy server and using SSL. If I use the IdHTTP component with my SOCKS5 proxy (and a non https URL), everything works without problems. If I use…
user2791785
  • 93
  • 1
  • 5
9
votes
8 answers

Use SSL with Delphi yet still having a single exe

We use Indy and we need SSL eMail support in our app., however we need to have our application in a single .Exe. We know that the default Indy handler requires to have the dlls in the path. Extracting the Dlls from one of the EXE's resources would…
John Thomas
  • 4,075
  • 3
  • 29
  • 41
9
votes
3 answers

Delphi Indy verify server certificate SSL

I have scoured the internet and haven't found a solution or method on how to verify the certificate when connecting over HTTPS using TIdHTTP. I have hooked up a IdSSLIOHandlerSocketOpenSSL component as the IOHandler, set the SSLModes, etc. but when…
Adrian
  • 323
  • 2
  • 5
  • 17
9
votes
1 answer

after a stream was passed to CommandGet, when can it be freed?

with indy TIdHTTPServer, on the even of OnCommandGet, there is a possiblity to pass to AResponseInfo.ContentStream a stream with the data. which is fine. when can i release that stream? assuming the server can get multi requests, and any request…
none
  • 4,669
  • 14
  • 62
  • 102
9
votes
1 answer

How do I upload a file using http post? Delphi 2009

My goal is to upload a text file via HTTP post I am using Delphi 2009. Say for example to the following URL https://www.example.com/ex/exampleAPI.asmx/Process I understand it can be done by using the TIdHttp component. And the following call…
Trevor
  • 16,080
  • 9
  • 52
  • 83
9
votes
5 answers

Delphi + Indy: Connection closed gracefully

Using D7 + Indy 10 latest build. My code is using TIdSMTP to send email. I keep getting "Connection closed gracefully" at some end-users, and the email is never sent. The code is like: try ~~~~ ~~~~ _idSMTP := TIdSmtp.Create; with _idSMTP do begin …
Atlas
  • 1,353
  • 5
  • 19
  • 32
8
votes
1 answer

SSL support for smtp.live.com and TIdSmtp (Indy, Delphi)

I am trying to connect to smtp.live.com to send emails (live.com supports free pop3/smtp since 2009 apparently but this is totally news for me). Here is what happens when I try to connect to smtp.live.com port 587: Method sslvSSLv2 - timeout…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
8
votes
4 answers

Does Delphi XE2 FireMonkey support Indy for cross-platform apps?

Looking at the new Delphi XE2 with Firemonkey. Considering that it compiles for Windows, Mac OSX and iOS, VCL components are useless in a FireMonkey application. My question is: Is there/will there be an Indy Firemonkey Edition? Cause I seriously…
Jeff
  • 12,085
  • 12
  • 82
  • 152
8
votes
3 answers

Indy Write Buffering / Efficient TCP communication

I know, I'm asking a lot of questions...but as a new delphi developer I keep falling over all these questions :) This one deals with TCP communication using indy 10. To make communication efficient, I code a client operation request as a single byte…
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
8
votes
4 answers

Is it possible to use Indy 10.5.8.0 in Delphi XE and DataSnap?

The case I'm trying to update the INDY to the latest version for my Delphi XE (Update 1), so I downloaded the latest INDY10 file (Indy_4545.zip) from indy.fulgan.com/ZIP. The packages compiles successfully and I can now even see the new version…
jachguate
  • 16,976
  • 3
  • 57
  • 98
8
votes
2 answers

Delphi: Get MAC of Router

I am using Delphi and I want to determinate the physical MAC address of a network device in my network, in this case the Router itself. My code: var idsnmp: tidsnmp; val:string; begin idsnmp := tidsnmp.create; try …
Daniel Marschall
  • 3,739
  • 2
  • 28
  • 67
8
votes
3 answers

Is Indy for FreePascal stable?

I'm starting to play with FreePascal/Lazarus and there appears to be an Indy port available. Is this a recent port and is it stable enough to use in production use? (Standard HTTP post/get client type work, and basic TCPIP server side.) Or, perhaps…
Darian Miller
  • 7,808
  • 3
  • 43
  • 62
8
votes
1 answer

How to determine which TLS/SSL protocol was negotiated when using sslvSSLv23?

I am using TIdSSLIOHandlerSocketOpenSSL to open a TLS/SSL connection. I currently want to support tls 1.0 to 1.2. I initialize the IOHandler like this. TIdSSLIOHandlerSocketOpenSSL(FSocket.IOHandler).SSLOptions.SSLVersions :=…
Ken Bourassa
  • 6,363
  • 1
  • 19
  • 28
8
votes
5 answers

Error "Could not load SSL library" on Android with TidHTTP

I'm trying to download a file with TIdHTTP.Get in Delphi Seattle. It's an app for android and all my attempts fails. All i get it's the same error "Could not load SSL library". This is the procedure: procedure TfrmMain.DownloadPicture(const AURL:…
wordermorr
  • 315
  • 1
  • 4
  • 13
8
votes
2 answers

How to get a token passed as header using datasnap?

In my client application I'm using the following code to add a token in the header: RESTRequest.Params.AddItem('Authorization', 'Bearer ' + MyToken, TRESTRequestParameterKind.pkHTTPHEADER, [TRESTRequestParameterOption.poDoNotEncode]); I'd like to…
Daniel Grillo
  • 2,368
  • 4
  • 37
  • 62