indy10

Retrieve Gmail Labels with Indy?

♀尐吖头ヾ 提交于 2019-12-11 09:44:32
问题 According to this thread (and various hints in the source code like variable names) Indy supports fetching gmail labels but not setting or removing them. However, as of yet, this functionality appears to be undocumented. Can anyone help me with filling in the details about how to retrieve Gmail labels with Imap? Which function(s) should I call to retrieve the labels and have Indy parse out the results for me? Although I could certainly manually call SendCmd() to request the labels ('C2 UID

Using AnsiString like byte of array in Delphi XE4

断了今生、忘了曾经 提交于 2019-12-11 09:23:59
问题 Trying to move Delphi 2007 project to XE4 . In Delphi 2007 I was using function that reads byte array from socket using Indy directly. I passed AnsiString casted to array of byte to var parameter of this function: var data:AnsiString; AContext.Connection.IOHandler.ReadBytes(TIDBytes(Data), PacketLength-PacketLengthDelta-1, False); In Dlphi XE when I try to concatinate Data to another string I got access violation error. Now I'm trying to simulate this problem in more simple code: TIdBytes =

Two-way TCP communication in Indy 10?

懵懂的女人 提交于 2019-12-11 05:29:01
问题 I am using TIdCmdTCPClient and TIdCmdTCPServer. Suddenly I find that I might like to have bi-directional communication. What would be best? Should I possibly use some other components? If so, which? Or should I kludge and have the 'client' poll the 'server' to ask if it wishes to communciate anything? This is a very small system. Two clients and ten servers, with a burst of one tarnscation every 30 to 60 seconds for a few minutes once a day, so overhead for polling is inconsequential. I'm

Better Indy for Dephi 2007

。_饼干妹妹 提交于 2019-12-11 03:39:53
问题 Which better is using default indy10 that's comes with Delphi 2007 or upgrade it to latest snapshot version and why ? Thank you 回答1: Always keep up with the latest version. It contains bug fixes. If you report a problem with the stock version supplied with Delphi, the first advice you'll get is to upgrade to the latest version because your bug has probably already been fixed. 回答2: Do not always keep up with the latest version. Download latest version now and start your project with it. Then

Amazon MWS API Call Using Delphi/Indy

北城以北 提交于 2019-12-11 03:31:30
问题 I'm developing a simple application to "talk" to the Amazon MWS API. Because a lot of existing code is at play here, I need to get this done in Delphi 2010 with Indy 10 (10.5.5) components, which I have used successfully to integrate with many other APIs in the past. However, the Amazon API seems to be incredibly sensitive to the smallest of details, to the point that all my calls are being denied with the already infamous "SignatureDoesNotMatch" error message. Here's what I have accomplished

Hooking into message loop of dbx DataSnap user session

五迷三道 提交于 2019-12-11 01:59:55
问题 Is there a way to hook into the WndProc of a dbx user session? Background: dbx DataSnap uses Indy components for TCP communication. In its simplest form, a DataSnap server is an Indy TCP server accepting connections. When a connection is established, Indy creates a thread for that connection which handles all requests for that connection. Each of these user connections consume resources. For a server with a couple hundred simultaneous connections, those resources can be expensive. Many of the

How to send a DELETE request with Indy?

。_饼干妹妹 提交于 2019-12-10 23:45:23
问题 I tried several search for examples on the web on how to send a DELETE request with TidHTTP without success... I'm working with Delphi Indy 10.0.52. Apparently there is not such a method as Delete in the TIdHTTP object. Is it possible? I'm missing something here... Help! I ended up with something (not working) like this: procedure TRestObject.doDelete( deleteURL:String ); var res : TStringStream; begin res := TStringStream.Create(''); http := TidHTTP creation and init... try http.Request

Indy 10 and sslvTLSv1_2

为君一笑 提交于 2019-12-10 23:24:48
问题 I have a website I post to that currently supports TLS v1.1 and TLS 1.2. They will soon only allow TLS ver 1.2 connections. I upgraded Delphi 5 to Indy 10 for this reason. Currently, I create my components in code and everything works great running 3 threads at a time: HTTp := TIdHttp.Create(nil); HTTP.OnSelectAuthorization := HTTPSelectAuthorization; HTTP.HTTPOptions := [hoInProcessAuth,hoForceEncodeParams,hoKeepOrigProtocol]; HTTP.OnStatus := HTTPStatus; HTTP.OnWorkEnd := HTTPWorkEnd; HTTP

OpenSSL 1.0.2.g update breaks my Delphi app

与世无争的帅哥 提交于 2019-12-10 23:08:52
问题 My Win32 program fails after an upgrade from OpenSSL 1.02f to 1.02g. I made sure to reboot after the upgrade, and I have verified that the correct libeay32.dll , libssl32.dll , and ssleay32.dll are in C:\Windows\SysWOW64 (and it does not help either if I copy them to my app directory). var lIOHandleSSL : TIdServerIOHandlerSSLOpenSSL; FWebBrokerBridge : TIdHTTPWebBrokerBridge; // = class(TIdCustomHTTPServer) begin FWebBrokerBridge := TIdHTTPWebBrokerBridge.Create(Self); LIOHandleSSL :=

Indy10 + OpenSSL: send email code stopped working on Windows 8

折月煮酒 提交于 2019-12-10 19:12:40
问题 Code stopped working on Windows 8. It works fine on Windows7, Windows XP... I found a workaround for this issue: start application in Windows compatibility mode: Windows XP (Service Pack 3) - code working. Code not working if Windows compatibility mode is Windows 7. I run application as Administrator. Have already tried to switch off antivirus and firewall. I can send email with the same parameters using another smtp client, e.g. .Net SmtpClient. The problem is reproduced on different Windows