indy10

Indy server supports SSL 2, but it should not

倖福魔咒の 提交于 2019-12-10 10:33:18
问题 Indy Delphi 10.1 Berlin. My customer had the HTTPS connection checked (using Qualys SSL Labs). The report states: "This server supports SSL 2" plus other warnings but I guess they are related to this. The code used is as follows: SSLIOhandler:=TIdServerIOHandlerSSLOpenSSL.Create(NIL); SSLIOhandler.SSLOptions.Method:=sslvTLSv1_2; SSLIOhandler.SSLOptions.Mode:=sslmServer; SSLIOhandler.OnVerifyPeer:=OnVerifyPeer; SSLIOhandler.SSLOptions.SSLVersions:=[sslvTLSv1,sslvTLSv1_1,sslvTLSv1_2];

How to track URL redirects using Delphi and Indy?

荒凉一梦 提交于 2019-12-10 09:58:50
问题 I get several marketing emails with url links that get redirected from site to site to site. I'd like to write a program to track each URL redirect using Delphi and Indy. I'd like to traverse each URL, record the full QueryString and any Cookies that may have been set during the process. How do I do this using the Indy components that come with D2010? 回答1: First of all you need a HTTP client, which is TIdHTTP in Indy. Now you will need a data structure that will hold your results:

UDP Packet not captured by Wireshark, but is captured by UDP application

六眼飞鱼酱① 提交于 2019-12-10 07:38:49
问题 I have an application that is designed and working that is receiving UDP broadcasts on a port. The application has been working just fine, but I have wanted to compare the packets received by the application with a Wireshark capture. I'm trying to make sure that I'm capturing as many of the packets as possible with minimal data loss. I initially thought that I'd run Wireshark and compare the raw packets captured against the packets shown in our application. However, when I run Wireshark, the

Tidhttp.connectTimeout not working!

百般思念 提交于 2019-12-08 22:30:51
问题 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! 回答1: 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

IdHttp Post Method Delphi 2010

本小妞迷上赌 提交于 2019-12-08 07:59:40
问题 Like others before me, I'm having troubles using the IdHttp(Indy 10.5.5) component in Delphi 2010. The code works fine in Delphi 7: var XMLString : AnsiString; lService : AnsiString; ResponseStream: TMemoryStream; InputStringList : TStringList; begin ResponseStream := TMemoryStream.Create; InputStringList := TStringList.Create; XMLString :='<?xml version="1.0" encoding="ISO-8859-1"?> '+ '<!DOCTYPE pnet_imessage_send PUBLIC "-//PeopleNet//pnet_imessage_send" "http://open.peoplenetonline.com

Indy 10 + Delphi Client-Server App Eats up all CPU

丶灬走出姿态 提交于 2019-12-08 07:31:13
问题 I wrote a small client-server application that runs on two or more distinct machines for reboot / shutdown purposes. Since I'm relatively new to client-server apps, I took the About Delphi approach here. Shortly put, my server app awaits connections on port 7676, adds the client to a client list then does nothing (will implement the shutdown and restart procedures later). However, even if it's passive, it eats up to 90% of CPU with only two clients connected. Here's the client code, made up

Connection Closed Gracefully Indy TCPServer Mobile App Delphi XE8

独自空忆成欢 提交于 2019-12-08 02:06:19
问题 I am using Indy TCPClient/TCPServer to verify registration of a mobile device. The process is fairly straight forward where I read an identifier on the Server Side, validate it against the database control file and send back a response to the client. Everything appears to work correctly for the most part but periodically I get the EIDConnClosedGracefully Exception on the Server Side. I can't seem to pinpoint exactly where the connection is being closed improperly. In fact, it appears that the

sending mail but no message-id

落爺英雄遲暮 提交于 2019-12-07 11:48:16
问题 I am getting interesting rejections from my clients mail server when sending a mail with indy-10's tidMessage component saying: 550 Rejected: Message does not contain a Message-ID I get this even when using indy's own demo app http://www.indyproject.org/DemoDownloads/Indy_10_MailClient.zip what do I do to fix this. thanks! 回答1: TIdMessage in Indy 10 intentionally omits the 'Message-Id' header when encoding an email to a socket or TStream. You will have to use the TIdMessage.ExtraHeaders

Seeking simple INDY demo [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-07 04:29:34
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I want a simple client server communication which I can use an underlying framework and never have to look at again. I want to concentrate on my application and have a simple functional API along the lines of:

TIdHTTPServer file upload

允我心安 提交于 2019-12-07 03:13:01
问题 I'm trying to upload files to a Indy(ver. 10.5.5) TIdHTTPServer. I've been searching for solutions but no luck thus far, what I've found was for older versions of Indy which were not compatible with the version shipped with Delphi 2010. What I'm hoping is to achieve simply upload a file using "multipart/form-data" to the server and decode it, simple as that, any help is appreciated. 回答1: I started xxm as a way to build websites with Delphi, and have scripts with both HTML and Pascal code re