indy10

Tidhttp.connectTimeout not working!

浪子不回头ぞ 提交于 2019-11-29 14:45:34
So i'm using tidhttp to make post requests. when i try to set connectTimeout whatever period of time it has no effect. I still wait ~5 sec before i get exception. Thanks in advance! If you are connecting to a hostname instead of an IP address, the hostname has to be resolved to an IP via a DNS lookup, which can take time, especially if the hostname has not been cached by the OS yet. The ConnectTimeout property does not account for that time. Also, when ConnectTimeout is not zero, or if TIdAntiFreeze is being used, Indy has to use an internal worker thread to perform the actual socket API

Using INDY 10 SMTP with Office365

给你一囗甜甜゛ 提交于 2019-11-29 10:55:34
I'm not familar with the INDY SMTP component. I want to send a mail with INDY and Office 365. Here is a nice topic which helped me a lot: What do the SMTP Indy component security and authentication properties do? But I did not figured out how to use SASL. Office365 adress is smtp.office365.com with port 587 and TLS. So I added an SMTP and an OpenSSL-IOHandler to my form and setted the properties. But I didn't work, the app is just freezing. I need to know how to use SASL with Office365. Thanks. Office365 only supports the LOGIN SASL on TLS port 587. The following code works fine for me when I

Indy 10 TCP server

故事扮演 提交于 2019-11-29 00:25:31
After a lot of searching I thought Indy TCP server would be the best to use on Instant messenger server I am working on. The only issue I am facing right now is broadcasting and forwarding message to other connected client, sending back response to the same client seems ok and doesn't hangs up other clients activity, but for forwarding message to other clients the mechanism that I know of is by using the aContext.locklist , and iterating between the connection list to find the client connection that is to receive the data. The problem here I think is that it freezes the list and doesn't

Using INDY 10 SMTP with Office365

故事扮演 提交于 2019-11-28 04:45:04
问题 I'm not familar with the INDY SMTP component. I want to send a mail with INDY and Office 365. Here is a nice topic which helped me a lot: What do the SMTP Indy component security and authentication properties do? But I did not figured out how to use SASL. Office365 adress is smtp.office365.com with port 587 and TLS. So I added an SMTP and an OpenSSL-IOHandler to my form and setted the properties. But I didn't work, the app is just freezing. I need to know how to use SASL with Office365.

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

谁说胖子不能爱 提交于 2019-11-27 23:10:08
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 10.5.8.0 on the about box dialog, but after a IDE restart I got a message saying: No se encuentra el punto de entrada del procedimiento @Idhttp@TIdCustomHTTP@GetRequestHeaders$qqrv en la biblioteca de vínculos dinámicos IndyProtocols150.bpl. My free translation to English: Entry point not found for procedure @Idhttp@TIdCustomHTTP@GetRequestHeaders$qqrv

How to use a dll outside of the system path

≡放荡痞女 提交于 2019-11-27 19:50:40
I made an application that uses the openssl dlls ( libeay32.dll and ssleay32.dll ). It is indy using them, I don't call the dlls directly. The simplest workaround i found to avoid an installer (i just delpoy an exe and i am ok with this approach) is to: put the dlls as resources of the exe on program start I extract them in the exe folder the exe uses them This is perfect but I would like to improve the approach by extracting the dlls in a temp folder and not on the exe folder (that in many cases is the desktop). The problem is that I don't know how to force the application to use the dlls in

Indy 10 TCP server

别说谁变了你拦得住时间么 提交于 2019-11-27 15:19:02
问题 After a lot of searching I thought Indy TCP server would be the best to use on Instant messenger server I am working on. The only issue I am facing right now is broadcasting and forwarding message to other connected client, sending back response to the same client seems ok and doesn't hangs up other clients activity, but for forwarding message to other clients the mechanism that I know of is by using the aContext.locklist , and iterating between the connection list to find the client

How to check URL with IdHTTP?

人走茶凉 提交于 2019-11-27 07:08:53
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 be reached. Indy will still rise exceptions even though i tried to ignore them. So my question is how to properly ignore these exceptions. 1. How to ignore all exceptions thrown by the TIdHTTP ? To handle all exceptions and, as you say, ignore them, you may use the code that is almost identical to the code from @Stijn's answer: procedure TForm1

Step by step upgrade of Indy 10 in Delphi 2009

試著忘記壹切 提交于 2019-11-27 04:25:43
Can someone help in telling the details on how to uninstall Indy 10 and install the latest build? I found it http://indy.fulgan.com/ZIP/IndyTiburon.zip There is a similar question , but not a satisfying answer, just some comments from the user who asked, but that is not a step by step guide. Why there is not a tool for this? Mark Robinson I did this very recently, I've done it before with 2007 and had lots of problems, but this time in D2010 it went really well... Assumptions: The Indy BPL's are stored in the bin folder DCP and DCU are stored in the lib\indy10 folder Source code is source\indy

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

早过忘川 提交于 2019-11-26 23:16:12
问题 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 10.5.8.0 on the about box dialog, but after a IDE restart I got a message saying: No se encuentra el punto de entrada del procedimiento @Idhttp@TIdCustomHTTP@GetRequestHeaders$qqrv en la biblioteca de vínculos dinámicos IndyProtocols150.bpl. My free