indy

Correctly sending and receiving a struct through Indy UDP

末鹿安然 提交于 2020-02-07 18:14:32
问题 Consider the following minimal program using Borland 2007 and Indy UDP server and client: struct DATA_PACKAGE { int t; int x; int y; }; void __fastcall TForm1::Button1Click(TObject *Sender) { DATA_PACKAGE a; a.t = 3; a.x = 2; a.y = 1; Form1->Memo1->Lines->Add("sent " + IntToStr(sizeof(DATA_PACKAGE))); Form1->UDPClient1->SendBuffer(server,port,RawToBytes(&a, sizeof(DATA_PACKAGE))); } void __fastcall TForm1::UDPServer1UDPRead(TObject *Sender, TBytes AData, TIdSocketHandle *ABinding) { DATA

Error “Could not load SSL library” on Android with TidHTTP

a 夏天 提交于 2020-01-27 20:50:34
问题 I'm trying to download a file with TIdHTTP.Get in Delphi Seattle. It's an app for android and all my attempts fails. All i get it's the same error "Could not load SSL library". This is the procedure: procedure TfrmMain.DownloadPicture(const AURL: string); var MeS: TMemoryStream; cidSSL: TIdSSLIOHandlerSocketOpenSSL; cidHTTP: TIdHTTP; begin cidHTTP:= TIdHTTP.Create(nil); cidSSL:= TIdSSLIOHandlerSocketOpenSSL.Create(nil); Mes := TMemoryStream.Create; try cidHTTP.ReadTimeout := 30000; cidHTTP

Indy 10 + SSL = works in Windows 7, does not work on XP

人盡茶涼 提交于 2020-01-24 08:54:28
问题 I'm using the Indy 10 Http Client (latest SVN build) and a SSL Handler (Delphi 7) to get the content of the https://www.webtide.com/choose/jetty.jsp website. It works fine on Windows 7 x64 (tested on two systems), but on WindowsXP x86 (tested on 3 systems) the test app simply hangs on TIdHTTP.Get() without the possibility of a recovery (meaning even disconnecting in a worker-procedure/thread does not work!). The test app cannot be recovered and must be closed with the task manager. The SSL

Indy 10 + SSL = works in Windows 7, does not work on XP

你说的曾经没有我的故事 提交于 2020-01-24 08:53:13
问题 I'm using the Indy 10 Http Client (latest SVN build) and a SSL Handler (Delphi 7) to get the content of the https://www.webtide.com/choose/jetty.jsp website. It works fine on Windows 7 x64 (tested on two systems), but on WindowsXP x86 (tested on 3 systems) the test app simply hangs on TIdHTTP.Get() without the possibility of a recovery (meaning even disconnecting in a worker-procedure/thread does not work!). The test app cannot be recovered and must be closed with the task manager. The SSL

Steps to enable and use iconv on Windows with Indy 10.5.9

廉价感情. 提交于 2020-01-23 03:35:32
问题 For cross-platform development with Internet Direct (Indy), it can be useful to enable iconv support instead of the OS-specific Windows character conversions. This would allow to continue developing and testing code on Windows in the Delphi IDE, but still be able to find conversion related issues before compiling the code on a different platform. Indy 10 already includes code to use the iconv API on Linux and Windows. On Windows, some preparation is required: copy the iconv API DLL to the app

Delphi Indy no response content after 404

北城以北 提交于 2020-01-20 08:16:52
问题 When Indy get a 404, I cannot get the response content, its always empty. For example, using Indy to access https://www.etsy.com/people/car, I get a 404 and contentstream (or assigned stream) is just empty. Doing the same with THttpClient, I also get a 404, but also get the content of the 404 page in the response stream. So my question is, how can I get the response content with Indy when its a 404? 回答1: using Indy to access https://www.etsy.com/people/car, I get a 404 and contentstream (or

Delphi Indy no response content after 404

岁酱吖の 提交于 2020-01-20 08:15:06
问题 When Indy get a 404, I cannot get the response content, its always empty. For example, using Indy to access https://www.etsy.com/people/car, I get a 404 and contentstream (or assigned stream) is just empty. Doing the same with THttpClient, I also get a 404, but also get the content of the 404 page in the response stream. So my question is, how can I get the response content with Indy when its a 404? 回答1: using Indy to access https://www.etsy.com/people/car, I get a 404 and contentstream (or

Indy - IdHttp how to handle page redirects?

允我心安 提交于 2020-01-19 07:58:47
问题 Using: Delphi 2010, latest version of Indy I am trying to scrape the data off Googles Adsense web page, with an aim to get the reports. However I have been unsuccessful so far. It stops after the first request and does not proceed. Using Fiddler to debug the traffic/requests to Google Adsense website, and a web browser to load the Adsense page, I can see that the request (from the webbrowser) generates a number of redirects until the page is loaded. However, my Delphi application is only

EIdOSSLUnderlyingCryptoError and “Error connecting with SSL. error:14094410…”

╄→尐↘猪︶ㄣ 提交于 2020-01-15 12:13:41
问题 I have a problem with Indy components in Delphi 10.1 Berlin on OS X. I'm using TIdHTTP to connect to a webservice using HTTPS. The problem is connecting to a server from an OS X client. When running on OS X, I get this same error all the time: Project raised exception class EIdOSSLUnderlyingCryptoError with message 'Error connecting with SSL. error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure'. I set the TIdHTTP.IOHandler property to use OpenSSL: IdHTTP.IOHandler :=

EIdOSSLUnderlyingCryptoError and “Error connecting with SSL. error:14094410…”

你说的曾经没有我的故事 提交于 2020-01-15 12:11:29
问题 I have a problem with Indy components in Delphi 10.1 Berlin on OS X. I'm using TIdHTTP to connect to a webservice using HTTPS. The problem is connecting to a server from an OS X client. When running on OS X, I get this same error all the time: Project raised exception class EIdOSSLUnderlyingCryptoError with message 'Error connecting with SSL. error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure'. I set the TIdHTTP.IOHandler property to use OpenSSL: IdHTTP.IOHandler :=