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
14
votes
2 answers

Indy 10 Http Server sample

I need a simple code sample for Indy 10 Http Server When request (post) simply displays it Is there an Indy 9 sample for this? Thanks
SridharanS
  • 157
  • 1
  • 1
  • 3
14
votes
3 answers

Using Gmails Outgoing SMTP from DELPHI(Indy) using TLS

I am using INDY to send Email using the SMTP client on port 25 with no problem. Now I need to send an Email using a Gmail account and for that I need to use TLS. Can anyone provide a simple sample on how to do that. Thanks
DRokie
  • 705
  • 2
  • 9
  • 20
14
votes
1 answer

Proxy server using Indy

I'm new to Indy and I want to build a simple proxy-server with it. This is a quite big library, and I just don't know where to start. When client connects to server, OnExucute fires up and receives client connection as parameter…
Frantic
  • 1,179
  • 11
  • 25
14
votes
1 answer

Indy 10 - IdSMTP.Connect raising "Could not load SSL library."

Here is my configuration: IdSMTP1.Host := 'smtp.gmail.com'; IdSMTP1.Port := 587; IdSMTP1.UseTLS := utUseExplicitTLS; IdSMTP1.IOHandler := IdSSLIOHandlerSocketOpenSSL1; IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvTLSv1; I've downloaded the…
EProgrammerNotFound
  • 2,403
  • 4
  • 28
  • 59
14
votes
1 answer

How can I get Delphi XE2 to talk to Google Calendar APIs over SSL?

It's time for this question again, but this time with Delphi XE2. I am using the Indy version 10.5.8.0 that ships with XE2, and I have tried four different versions of the SSL dlls. I have tried 1.0.x latest, and about 3 different 0.9.8 versions…
Warren P
  • 65,725
  • 40
  • 181
  • 316
13
votes
2 answers

Is there a way to set response timeout for Indy Tidhttp gets?

I have built a simple website monitoring application using Indy TIdhttp component. I want to detect when a designated page is not returned within a specified time frame (I am using 5000 milliseconds). As a test I created a page on a web site which…
M Schenkel
  • 6,294
  • 12
  • 62
  • 107
13
votes
2 answers

Delphi HTTP Post JSON

I am sure I'm doing something wrong here. I've followed every example I can find on stackoverflow and still haven't gotten this to work in my environment. I'd love to update my controls and environment, but I'm currently locked in with what I have.…
Jared Sherman
  • 149
  • 1
  • 2
  • 7
12
votes
1 answer

Delphi: Indy - how to get the response body on error?

Delphi6 and XE3. I want to get the real response body of a request. But the server makes error 500. Then the Indy replace the response text with the description of the error. This homepage is designed for answer 500 in non abnormal operations too,…
durumdara
  • 3,411
  • 4
  • 43
  • 71
12
votes
2 answers

How to check URL with IdHTTP?

How can I check for the target URL for specific response code like 200 OK without Indy throwing all sorts of exceptions out. ConnectionTimeout,ConnectionClosedGracefully, etc... For example if URL is not proper or its host cannot be found or cannot…
Santos Oliveira
  • 497
  • 1
  • 8
  • 18
12
votes
3 answers

Http Post with indy

I have a simple php script on my web server which I need to upload a file using HTTP POST, which I am doing in Delphi. Here is my code with Indy but aparantely it won't work and I can't figure out what i am not doing properly. How can I view what I…
opc0de
  • 11,557
  • 14
  • 94
  • 187
11
votes
1 answer

TIdHTTP - session has expired message under Delphi XE

I am trying to port my code from Delphi 2007 to Delphi XE (no Update 1 yet). The problem which I have stumbled on is that under Delphi XE I am getting different response from server after sending second GET message. The message in formated HTML says…
Wodzu
  • 6,932
  • 10
  • 65
  • 105
11
votes
1 answer

How to make Indy OpenSSL compatible with most servers

I use the following code to setup SSLHandler for POP3/SMTP sending/receiving app: IdSSLHandler->SSLOptions->Mode = sslmClient; IdSSLHandler->SSLOptions->Method = slvSSLv23; IdSSLHandler->SSLOptions->SSLVersions = TIdSSLVersions() <<…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
11
votes
4 answers

Does every successful HTTP request always return status code 200?

In Delphi, I'm using Indy's TIdHTTPWebBrokerBridge coupled with TIdHTTP to send/receive data via HTTP. On the Server, I don't have any fancy handling, I always just respond with a simple content stream. If there's any issues, I only return…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
11
votes
4 answers

Delphi (XE2) Indy (10) Multithread Ping

I have a room with 60 computers/devices (40 computers and 20 oscilloscopes Windows CE based) and I would like to know which and every one is alive using ping. First I wrote a standard ping (see here Delphi Indy Ping Error 10040), which is working…
HpTerm
  • 8,151
  • 12
  • 51
  • 67
11
votes
1 answer

Log in to website from Delphi

I would ask if someone was kind enough to explain to me how to login at webpage from Delphi app. All the examples I've found here have proved useless to me or I'm doing something wrong. I'm tired of the search and the code that does not work. There…
Cohen
  • 180
  • 2
  • 11