indy10

How To Fix Indy TIdTCPServer Freezing When Sending Text To TIdTCPClient?

≯℡__Kan透↙ 提交于 2019-12-25 02:49:42
问题 Cannot send text from TIdTCPServer To TIdTCPClient , the server hanging (Not Responding), it just freezes when trying to send text to the client. I Started Recently using Indy TIdTCPClient and TIdTCPServer, i have the client application working well when sending and receiving response from the server form, then issue is from the server it doesn't send data, and when i try to send data like Indy creators provided in their Doc, it just freezes and then stops responding (crashes) :(, the weird

Cookie Expired Indy

烂漫一生 提交于 2019-12-24 09:13:08
问题 Recently i found that i am getting EConvertError after calling IDHTTP.GET . I analyzed the traffic and saw the expire date on the cookie is 2000. Now my question is how to bypass this. I am using the Indy10 that is present in XE3. I know Indy follows strict standard about cookie handling but shouldn't there be a feature to turn this off ? URL: https://graph.facebook.com/me?access_token=ACCESS_TOKEN StackTrace: :75a5c41f KERNELBASE.RaiseException + 0x58 System.SysUtils.ConvertErrorFmt($412994,

Save Cookies inside TIDCookieManager to file

我与影子孤独终老i 提交于 2019-12-23 11:57:35
问题 How can I save cookies inside TIdCookieManager to a file so that they can be used later? Like browser cookies. 回答1: TIdCookieManager does not have any native support for persisting cookie data in files. You have to implement that manually. Use the TIdCookieManager.CookieCollection property to access the list of cookie objects. For example: uses ..., IdCookie, IdCookieManager; var Cookies: TIdCookieList; Cookie: TIdCookie; I: Integer; begin Cookies := IdCookieManager.CookieCollection

Delphi - Authorization TIdHttp fails over HTTP proxy

旧街凉风 提交于 2019-12-23 04:58:14
问题 I'm using Delphi XE 6 and TIdHttp component(Indy 10.6.0.5122) and trying to consume a SOAP service - http://www.webservicex.net/globalweather.asmx over a http proxy (CCProxy - http://www.youngzsoft.net/ccproxy/). The issue is that at the first attempt to connect to the webservice I receive an "Unauthorized" respone: <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><h1>Unauthorized ...</h1> <h2>IP Address: xxx.xxx.xxx.:61295<br> MAC Address: <br>

Delphi XE3 indy compatibility issue between tbytes and tidbytes

风格不统一 提交于 2019-12-23 01:11:30
问题 I already saw post at Delphi XE4 Indy compatibility issue between TBytes and TidBytes about compatibility issues between the data types tbytes and tidbytes. From the second answer I learned, that it looks like they can't be used together even though they're both array of byte. However, the latest answer says, that in indy 10.5.9 it was dependent of the presence of TBytes, and that only in Indy 10.6 was it completely submitted as array of byte. Anyway,I have a .pas unit which decodes several

Delphi XE3 indy compatibility issue between tbytes and tidbytes

自作多情 提交于 2019-12-23 01:11:12
问题 I already saw post at Delphi XE4 Indy compatibility issue between TBytes and TidBytes about compatibility issues between the data types tbytes and tidbytes. From the second answer I learned, that it looks like they can't be used together even though they're both array of byte. However, the latest answer says, that in indy 10.5.9 it was dependent of the presence of TBytes, and that only in Indy 10.6 was it completely submitted as array of byte. Anyway,I have a .pas unit which decodes several

Reading response from TIdDNSResolver?

倖福魔咒の 提交于 2019-12-22 17:09:02
问题 I cannot find any simple examples of a DNS lookup using Indy 10's TIdDNSResolver component. They're all either for something I don't need (such as MX/SMTP), or are talking terms with no code . I have tried reading the result based on the few resources I can find, but don't know how I'm supposed to be reading the result. Here's what I have so far... uses IdBaseComponent, IdComponent, IdTCPConnection, IdDNSResolver; function TForm1.Lookup(const Name: String): String; var X: Integer; begin //DNS

Reading response from TIdDNSResolver?

若如初见. 提交于 2019-12-22 17:08:34
问题 I cannot find any simple examples of a DNS lookup using Indy 10's TIdDNSResolver component. They're all either for something I don't need (such as MX/SMTP), or are talking terms with no code . I have tried reading the result based on the few resources I can find, but don't know how I'm supposed to be reading the result. Here's what I have so far... uses IdBaseComponent, IdComponent, IdTCPConnection, IdDNSResolver; function TForm1.Lookup(const Name: String): String; var X: Integer; begin //DNS

Incorrect boundary string in multipart/mixed message

狂风中的少年 提交于 2019-12-21 16:49:15
问题 I'm using Delphi 2006 to create and send an email message with an attachment in a personal-use-only application. I send the message with an instance of TIdSMTP, and then also put a copy into a specific IMAP folder with an instance of TIdIMAP4. This all works very nicely with the version of Indy 10 that was distributed with BDS2006, with one exception: the time is always incorrect in the email header. I decided to fix that if I could, and after searching for a solution it seemed most

Incorrect boundary string in multipart/mixed message

自作多情 提交于 2019-12-21 16:49:09
问题 I'm using Delphi 2006 to create and send an email message with an attachment in a personal-use-only application. I send the message with an instance of TIdSMTP, and then also put a copy into a specific IMAP folder with an instance of TIdIMAP4. This all works very nicely with the version of Indy 10 that was distributed with BDS2006, with one exception: the time is always incorrect in the email header. I decided to fix that if I could, and after searching for a solution it seemed most