indy10

How to supress echo with TIdTelnet?

删除回忆录丶 提交于 2019-12-12 11:41:40
问题 Using Indy10 - DelphiXE. How do I tell the telnet server I am connecting to with TIdTelnet to not echo the commands I send towards the telnet server? This is my current attempt (which doesn't work), I try to send the sequence IAC DO SUPPRESS_LOCAL_ECHO on each telnet write but I do believe this has to be done in the negotiating phase? uses TIdTelnet, ... procedure TIOTelnetConnection.SendSupressEcho; var Resp: TIdBytes; begin SetLength(Resp, 3); Resp[0] := TNC_IAC; Resp[1] := TNC_DO; Resp[2]

Strange rare out-of-order data received using Indy

橙三吉。 提交于 2019-12-12 10:26:19
问题 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 entire XML message, returning when it sees the LF. The call to actually send the message is protected by a critical section around the call to the IOHandler's

Delphi XE2 Indy 10 TIdCmdTCPServer freezing application

孤街浪徒 提交于 2019-12-12 09:22:50
问题 I'm just starting to learn how to use the Indy 10 components in Delphi XE2. I started with a project that will use the command sockets ( TIdCmdTCPServer and TIdCmdTCPClient ). I've got everything set up and the client connects to the server, but after the client connects, any command the server sends to the client just freezes the server app, until it eventually crashes and closes (after a deep freeze). Project Setup The setup is very simple; there's a small server app and a small client app,

SSL support for smtp.live.com and TIdSmtp (Indy, Delphi)

喜你入骨 提交于 2019-12-12 07:55:46
问题 I am trying to connect to smtp.live.com to send emails (live.com supports free pop3/smtp since 2009 apparently but this is totally news for me). Here is what happens when I try to connect to smtp.live.com port 587: Method sslvSSLv2 - timeout (obviously the server does not support SSL2) Method sslvSSLv3 - Error connecting with SSL. - error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number Method sslvSSLv23 - Error connecting with SSL. - error:140770FC:SSL routines:SSL23_GET_SERVER

Exception class EIdReadTimeout with message 'Read timed out' [Indy-IdFTP]

[亡魂溺海] 提交于 2019-12-12 04:48:40
问题 I want to download a file from FTP. If the file is small (usually under 1000MB) it works. However, if the file is big I get an EIdReadTimeout. Why? Should I keep the connection alive? From what I know reading data has its own channel so I don't have to keep the connection alive. What is odd is that the exception appears at the end of the Get (after Get successfully downloads the whole file): FTP.Get(Name, TempGzFile, TRUE, FALSE) !!!! Documentation: TIdFTP.ReadTimeout - Number of milliseconds

In the nutshell, how do I do HTTPS with Indy?

偶尔善良 提交于 2019-12-12 02:17:31
问题 Actually, my question doesn't have an answer there. I keep getting "EOF was observed" with solution (v23) of that answer. Only sslvSSLv2 gives a change "error:00000006:lib(0):func(0):EVP lib". Defective DLLs? According to the documentation it's pretty simple - have a DLLs and then just assign TIdSSLIOHandlerSocketOpenSSL instance to IOHandler property and switch protocol to https . But doing so, I've immediately faced an SSL error with message "Error connecting with SSL. EOF was observed that

Idhttp post session expire

谁都会走 提交于 2019-12-11 19:35:59
问题 I'm using Idhttp (indy10 with delphi-xe2) to post form, but I get session expired message from the site, although I've already set cookie manager. Thank you. procedure TForm2.IdCookieManager1NewCookie(ASender: TObject; ACookie: TIdCookie; var VAccept: Boolean); begin ShowMessage(Acookie.CookieText); end; The result from ShowMessage is: ASP.NET_SessionId=enn1xnqde1o1rduedels5fqp; Path=/; Domain=www8.ticketingcentral.com; HttpOnly; Max-Age=252028195945; Expires=Fri, 31-Dec-9999 16:59:59 GMT 回答1

Indy http server session doesn't work well

﹥>﹥吖頭↗ 提交于 2019-12-11 13:29:35
问题 How can create session used with in idhttpserver ? I tryed alot of ways to do but I can't able to reach session object in ARequestInfo.Session or AResponseInfo.Session these are both of them always nil. please help procedure TFolsecPermissionManager.IdHTTPServerCommandGet(AContext: TIdContext; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo); var Command: TCommand; Session: TIdHTTPSession; begin Session := IdHTTPServer.CreateSession(AContext, AResponseInfo, ARequestInfo);

Encoding in Indy 10 and Delphi

江枫思渺然 提交于 2019-12-11 13:19:31
问题 I am using Indy 10 with Delphi. Following is my code which uses EncodeString method of Indy to encode a string. var EncodedString : String; StringToBeEncoded : String; EncoderMIME: TIdEncoderMIME; .... .... EncodedString := EncoderMIME.EncodeString(StringToBeEncoded); I am not getting the correct value in encoded sting. 回答1: What is the purpose of IndyTextEncoding_OSDefault ? Here's the source code for IndyTextEncoding_OSDefault . function IndyTextEncoding_OSDefault: IIdTextEncoding; begin if

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

我与影子孤独终老i 提交于 2019-12-11 13:07:24
问题 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 results are fine, but if I try to grab the source of a page that requires a login then the result is the memo displays the source of the login page instead of the page I