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
11
votes
1 answer

recovering from "Connection Reset By Peer" Indy TCP Client

How should I be recovering in this situation? The server crashes, thus the connection has been abnormally closed. Calls to almost everything result in "Connection Reset By Peer" exceptions. I seem to have fixed it by calling Disconnect on the…
Andy Clark
  • 516
  • 1
  • 4
  • 21
10
votes
3 answers

Not able to send UTF-8 email using delphi indy

Here is my code Email body has got some unicode characters LSMTP := TIdSMTP.Create(nil); try LMsg := TIdMessage.Create(LSMTP); try with LMsg do begin Subject := Subj; Recipients.EMailAddresses := Email; …
ETL Man
  • 245
  • 1
  • 2
  • 7
10
votes
3 answers

Delphi/Indy IdHttpServer not multithreaded?

I'm using Delphi 2006 and Indy 10. I create a form and drop down an IdHttpServer component. I make an OnCreate event for the form to set the server active, and I enter these lines for the server's OnCommandGet: procedure…
Ben Ziegler
10
votes
2 answers

IdHttp Just Get Response Code

I'm using idhttp (Indy) to do some website checking. All I want it to do is check the response code from the server after my request has been sent, I don't want to actually have to receive the HTML output from the server as I'm only monitoring for a…
Flatlyn
  • 2,040
  • 6
  • 40
  • 69
10
votes
3 answers

Is TIdHTTPServer Compatible with Microsoft BITS

We are trying to write an update server for our software using the TIdHTTPServer component. Currently we are serving an XML file that lists the available updates and their file versions etc.., when the client program finds a updated version it…
Mike Taylor
  • 2,376
  • 2
  • 17
  • 33
10
votes
1 answer

Getting Response from TIdHttp with Error Code 400

I have been writing a Delphi library for StackApps API. I have run into a problem with Indy. I am using the version that ships with Delphi 2010. If you pass invalid parameters to one of the StackApps API it will return a HTTP Error Code 400 and…
Robert Love
  • 12,447
  • 2
  • 48
  • 80
10
votes
5 answers

MultiCast Messages to multiple clients on the same machine

Im trying to write a server/service that broadcasts a message on the lan ever second or so, Kind of like a service discovery. The message needs to be received by multiple client programs that could be on the same machine or different …
Christopher Chase
  • 2,840
  • 6
  • 36
  • 57
10
votes
2 answers

How to send a mail message using Indy's smtp server component?

Since the demo given in http://www.indyproject.org/Sockets/Demos/index.EN.aspx only saves the received stream to a file, I don't know how to effectevely send that stream as a mail. Could anyone teach me how to do this or to point me some more…
eKek0
  • 23,005
  • 25
  • 91
  • 119
10
votes
1 answer

How to configure Indy v10 to support IPv4 + IPv6?

With the following code I can get the content of an IPv4 website: uses IdHttp; IdHttp1 := TIdHttp.Create(nil); try Result := IdHttp1.Get('http://www.heise.de/') finally IdHttp1.Free; end; but when I try to connect to an IPv6 website I get…
Casady
  • 1,426
  • 3
  • 19
  • 39
9
votes
2 answers

Is it possible to recompile the DataSnap packages in Delphi XE with a new/different version of Indy?

Okay -- we have an interesting problem. Some background: Our main application uses Indy 10. However, we take the Indy 10 source and fix bugs in it, recompile, and install our own set of Indy components. We are migrating to Delphi XE and want to…
Nick Hodges
  • 16,902
  • 11
  • 68
  • 130
9
votes
1 answer

Why does indy return unreadable data but chrome loads it fine?

I'm trying to do a GET request on one of my game server's RESTAPI. When I load it in chrome it load with the correct json response but when I try to do it with indy it just gives me a bunch of unreadable text. URL for the request:…
Adriaan
  • 806
  • 7
  • 24
9
votes
3 answers

Indy - IdHttp how to handle page redirects?

Using: Delphi 2010, latest version of Indy I am trying to scrape the data off Googles Adsense web page, with an aim to get the reports. However I have been unsuccessful so far. It stops after the first request and does not proceed. Using Fiddler to…
SteveL
  • 309
  • 1
  • 5
  • 15
9
votes
2 answers

Delphi: TIdHTTP vs TNetHTTPClient

I'm writing a download manager in Delphi with some custom features like resumable downloads and downloading through proxies. I'm studing different component solutions: Indy and NetHTTP, both seem very close. TNetHTTPClient seem to be an interface…
Simone Nigro
  • 4,717
  • 2
  • 37
  • 72
9
votes
1 answer

Indy FTP, large files and NAT routers

I have been using Indy to transfers files via FTP for years now but have not been able to find a satisfactory solution for the following problem. When a user is uploading a large file, behind a router, sometimes the following happens: the file is…
Lobuno
  • 1,405
  • 1
  • 18
  • 28
9
votes
3 answers

How to download a file over HTTPS using Indy 10 and OpenSSL?

I have the following task: download a file using HTTPS and authentication. Indy seems the way to go but for some reason it doesn't work so far. I have the following in place: a TIdHTTP component which I use for downloading a TIdURI component used…
Tihauan
  • 2,780
  • 2
  • 26
  • 29