indy10

Delphi indy10 http server and ExtJS form submit

I have a problem I don't know how to solve. I have an Indy10 HTTP server. I have used both Indy9 and Indy10 HTTP servers in many applications and never had any problems. But now I am using Indy10 HTTP server with ExtJS javascript RAI framework. The problem is when I submit data that contains non-ansi characters. For instance when I su...

Strange rare out-of-order data received using Indy

We're having a bizarre problem with Indy10 where two large strings (a few hundred characters each) that we send out one after the other using TCP are appearing at the other end intertwined oddly. This happens extremely infrequently. Each string is a complete XML message terminated with a LF and in general the READ process reads an enti...

How to send an email with a calendar request (content type: text/calendar)

I have tried to embed the icalendar code in a email to be sent via indy with a content type text/calendar but it just hangs on the encoding of the email when I add as an attachment it just arrives as an attachment and does not prompt as other calendar request do. Has any one got example code of how to do calendar requests via indy? ...

Why can't I fetch an AOL captcha image in my Delphi program?

New demo code: I am trying to get the captcha image from a AOL, and i keep getting an error 418. unit imageunit; /// /// h t t p s://new.aol.com/productsweb/ /// interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL, ...

IdHttp Post Method Delphi 2010

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; ...

Connecting to Squid server using NTLM auth with Indy components

Hi, Has anybody managed to successfully connect to a https location via Squid proxy server setup with NTLM authentication, using Indy (10.XX) components? I can successfully connect to http locations, however with https Indy returns an EAbort error. Also, I can access http/https equally well if I use FreeProxy as the proxy server (with...

E-mail arrival notification with Indy IMAP client (Delphi 2009)

I am working on a deamon application that uses e-mail inbox as its input queue. Response times should be as high as possible with server overhead kept to minimum, so polling e-mail inbox is out of question. As IMAP protocol enables the notifications on new e-mails, this is ideal for the application. However, I've run into troubles when ...

The connection does not timeout while using Indy

I want to download a file from internet and I imagine this should be a simple task. Trying several different approaches I have found that each one has its own drawback. The main issues are: Application freezes until it downloads the file Application freezes forever if the Internet connection is lost/server does not respond. (details...

Step by step upgrade of Indy 10 in Delphi 2009

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? ...

Why does IOHandler.ReadStream blocks thread when client connects to server in Indy?

Hi, Today I faced a weird behavior using Indy 10 (shipped with Delphi 2010). Here is the problem: Suppose we have a IdTcpClient in our client, and a IdTcpServer in our server app, and this code in OnExecute event-handler for our IdTcpServer: procedure TForm1.IdTCPServer1Execute(AContext: TIdContext); var AStream: TStringStream; S:...

How to deal with network drops and Indy IdTCPServer

I have created a Client/Server application with the IdTCPServer component. The clients connect and maintain a persistent connection through the life of the application. If the network connection is dropped (which happens quite frequently because clients connect with wireless aircards) the client will automatically re-connect. This all...

Progress feedback in stateless HTTP session

I need to program a stateless server to execute remote methods. The client uses REST with a JSON parameter to pass the method name and its parameters. After servicing the result the session is closed. I have to use Indy10, TCP/IP as protocol, and therefore look at using IdHTTPServer. Large result sets are chunked by Indy10 and sent to t...

Deadlock on tidtcpserver.active = false (Delphi2007/indy10)

I am having a problem with some code that was written by a developer that has now left our company, the code implements a tcpserver that responds to an XML based protocol. This appears to be working absolutely fine in our test environment but one or two customers are having problems with application shutdown. I have traced this to what...

tIdHttpServer - EidConnClosed before sending a reply to POST

I am having trouble implementing a HTTP server with indy 10 in delphi 2007. I have set up a simple event handler for the CommandGet event. When replying to data sent using the GET method I can parse the params and send XML data back with no problems. (see code below) Download := ARequestInfo.Params.Values['dld']; Config := ARe...

Better Indy for Dephi 2007

Hi all, Which better is using default indy10 that's comes with Delphi 2007 or upgrade it to latest snapshot version and why ? Thank you ...

Delphi Indy10: How IdTCPClient gets the response of Server,and the length of response is unknown.

host:127.00.0.1; port:5001; ReadTimeout:3000; //Following codes to get the response procedure TForm1.Button2Click(Sender: TObject); var s:string; begin try while True do begin s := s+IdTCPClient1.IOHandler.ReadChar(); end; finally showmessage(s); ....other operations... end; //.... When timerout the part...

Delphi Using Indy 10

I'm using Delphi 4, and I want to create a standard non blocking socket with out the clutter of Indy code (Pv4 and Pv6). and i want to get the computers IP address and be able to ping has any one done this. Can I do it with Indy 10 or Indy 9. And has any one made code up to do any of these things and tested it please. ...

Twitter OAUTH and a Win32 EXE Desktop Application

I have been coding against a Delphi EXE (win32 desktop app) to access twitter and do certain functions. It used to use Basic authentication with the api limitation. I know I have to convert this to OAuth. I have been reading over the documentation trying to determine the best approach. I understand the best method is the Web browser...

Needed to be guided trought SSH Tunnel with a delphi Application

Hi there I created a Delphi 2010 application. It is use by many company in the region from trusted to untrusted users. The application authenticate users with MySQL behind MD5 encrypted password. Following this, the application need to upload and download many files trought ftp. The fact is : any network sniffer (such as Ethereal also ...

Problem getting html source from a protected webpage with Indy & Delphi 7

Hello, Using the Indy10 components for delphi, I am grabbing the source of a webpage and displaying it in a Memo control using the following code. procedure TForm1.Button1Click(Sender: TObject); begin Memo1.Text := IdHTTP1.Get(Edit1.Text); end; When the page I am trying to display is just a normal page (ie. no login required) the r...