indy

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

吃可爱长大的小学妹 提交于 2020-01-15 12:10:45
问题 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 :=

Can Indy run Javascript?

不想你离开。 提交于 2020-01-14 09:14:05
问题 There is a software product called AnyChart which is great for embedding Flashed based charts in web pages. AnyCharts can also export to PNG file format. Here is an example: <script type="text/javascript" language="javascript"> //<![CDATA[ var chart = new AnyChart('http://www.mysite.com/swf/AnyChart.swf'); chart.width = 600; chart.height = 300; chart.setXMLFile('http://www.mysite.com/anychart.xml'); chart.addEventListener("draw", function() { saveChartAsImage(chart); }); chart.write("content

Proper use of IdUDPClient.ReceiveBuffer

我怕爱的太早我们不能终老 提交于 2020-01-14 06:47:08
问题 Thank you for your help. I am converting an older version of Delphi to XE5 and I am getting stuck with the Indy compnent. Need to use IdUDPClient.ReceiveBuffer Here is my code: while not Terminated do begin try lenUDP:= IdUDPClient.ReceiveBuffer(myBuf, buffLength, -1 ); if lenUDP<> 0 then Synchronize(ReceivedLine); except Terminate; end; end; where, myBuf = packed array [0 .. buffLength -1] of char; All help is greatly appreciated. Thank you, Mike 回答1: As I told you in comments to your

Error 406 Not Acceptable with idHTTP on Android

一世执手 提交于 2020-01-11 09:56:08
问题 I'm trying to post a insert on a MySQL database using idHTTP and a PHP script. This is the PHP script to insert in the database: $mysqli = new mysqli($servidor, $usuario, $senha, $banco); // Caso algo tenha dado errado, exibe uma mensagem de erro if (mysqli_connect_errno()) trigger_error(mysqli_connect_error()); $iduser = quoted_printable_decode($_POST['iduser']); $nome = quoted_printable_decode($_POST['nome']); $data = quoted_printable_decode($_POST['data']); $hora = quoted_printable_decode(

Indy 10 Multipart upload to OneDrive Error

假装没事ソ 提交于 2020-01-06 18:10:32
问题 I am trying to do Multipart upload to OneDrive using POST and get 'HTTP/1.1 400 Bad Request'. IdLogFile: Stat Connected. Sent 10.02.2017 12:50:08: POST /v1.0/drive/root::/children HTTP/1.0`<EOL>`Content-Type: multipart/related; boundary="Boundary"`<EOL>`Content-Length: 254`<EOL>`Authorization: Bearer EwA...%3d`<EOL>`Host: api.onedrive.com`<EOL>`Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`<EOL>`Accept-Encoding: identity`<EOL>`User-Agent: Mozilla/3.0 (compatible;

Indy 10 Multipart upload to OneDrive Error

泄露秘密 提交于 2020-01-06 18:10:24
问题 I am trying to do Multipart upload to OneDrive using POST and get 'HTTP/1.1 400 Bad Request'. IdLogFile: Stat Connected. Sent 10.02.2017 12:50:08: POST /v1.0/drive/root::/children HTTP/1.0`<EOL>`Content-Type: multipart/related; boundary="Boundary"`<EOL>`Content-Length: 254`<EOL>`Authorization: Bearer EwA...%3d`<EOL>`Host: api.onedrive.com`<EOL>`Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`<EOL>`Accept-Encoding: identity`<EOL>`User-Agent: Mozilla/3.0 (compatible;

Error on TIdHTTP on Setting Host and Port at Runtime for SMS web service delivery

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 03:43:05
问题 I am trying to use an SMS API for Delphi from http://www.human.com.br but I get an 'access violation' error when the component tries to set the host and port of the webservice after creating an instance of Indy's TIdHTTP . host := TidHTTP.Create; host.Socket.Port := 80; // error right here! host.Socket.Host := 'system.human.com.br'; uri := TidURI.Create(); The original component was created in Indy60 and I have Indy170, so the was no Socket between host and Port and I had to put it. What is

IDHTTP.Post error

蓝咒 提交于 2020-01-05 10:30:11
问题 procedure Texport_plan.cxB_LoadClick(Sender: TObject); var HTTP: TIdHTTP; Query: String; Buffer: TMemoryStream; loadData: Sting; responseData: String; begin try HTTP := TIdHTTP.Create(nil); HTTP.Request.ContentEncoding := 'utf-8'; HTTP.Request.ContentType := 'text/xml'; Application.ProcessMessages; Query := 'http://priem.edu.ru:8000/import/ImportService.svc/import'; loadData := '<Root></Root>' Buffer := TMemoryStream.Create; loadData.SaveToStream(Buffer); responseData := HTTP.Post(Query,

Delphi 2007 and Indy 10 using https and SSL

岁酱吖の 提交于 2020-01-05 06:31:09
问题 I've dropped a TIdHTTP and a TIdSSLIOHandlerSocketOpenSSL, set the IOHandler of the IdHTTP to the SSL handler, set the mode of the TIdSSLIOHandlerSocketOpenSSL to sllmClient. And then added the button click event below. The first time I get this error from WhichFailedToLoad. Displayed, the second time I press the button it works. The ssl dll's are in the .exe diretory. The service works fine from the browser and is in production. Why doesn't it work the first time? procedure TForm32

How to create HTTP Header for eBay Browse API Function

落花浮王杯 提交于 2020-01-05 03:38:09
问题 I am trying to get a Product Review Rating through eBay's Browse API. Here is my code for this function: sHeaders := TStringList.Create; sHeaders.Add('X-EBAY-C-ENDUSERCTX=' + '"affiliateCampaignId=' + '533xxxxxxx"'); objIdHTTP.Request.CustomHeaders.AddStdValues(sHeaders); sResponse := objIdHTTP.Get('https://api.sandbox.ebay.com/buy/browse/v1/item/v1|123456789|0'); But I get a Socket Error 10054 when I test this code. It might be something wrong with the customer header part, but I can't