Questions tagged [idhttp]

This is the Indy component for HTTP requests.

TIdHTTP is a component of the Internet Direct (aka "Indy") open source library for performing HTTP requests. The component can handle redirects, authentication, and data retrieval all by itself.

IO Handlers can be attached for SSL, streaming, or custom designed IO.

268 questions
3
votes
1 answer

Delphi Indy TIdHTTP Website recognize robots

I'm try send a Get request to website. The problem is that website is recongize if the requester is a robot const _URL = 'https://www.URL.com/'; var sSessionID:String; Params: TStringList; IdSSL: TIdSSLIOHandlerSocketOpenSSL; begin IdSSL :=…
RepeatUntil
  • 2,272
  • 4
  • 32
  • 57
3
votes
1 answer

How do I stop the authentication dialog appearing when using THTTPRIO

I'm connecting to a web service using basic authentication using the following code: var RIO: THTTPRIO; begin RIO := THTTPRIO.Create(nil); EndPoint := GetWebServicePort(True, '', RIO); RIO.HTTPWebNode.UserName := 'xxxx'; …
norgepaul
  • 6,013
  • 4
  • 43
  • 76
3
votes
1 answer

URL Not Returning Data Delphi Indy TIdHttp

I am trying to access a URL in Delphi using a TIdHTTP Indy Tool. I have done the following: Set Accept Cookies = True Set Handle Redirect = True Added a…
user3564246
  • 125
  • 1
  • 9
2
votes
1 answer

TIdHTTP.Get timeouts while the same call done with Postman succeeds: possible reasons?

I call a webapi with a Delphi app, in some pcs, the call timeouts, while in other it works fine. The request done with Postman works fine. It is a simple custom ping webservice (URL is in Edit1.Text in the code below), in fact the answer is a…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
2
votes
2 answers

Delphi XE: idHttp & Request.Range, a bug?

I have Delphi XE. I try to set Request.Range of idHttp but I cannot do this. Delphi doesn't allow me to do this neither at design time nor at run time. E.g. I set '6000-' in a design time -> a property gets empty all time. I do (in a…
maxfax
  • 4,281
  • 12
  • 74
  • 120
2
votes
1 answer

Indy IdHttp, SSL and Proxy in Delphi

I use Indy 10.6.2 with Delphi 7. I must connect to a https server. I use this code : FIdHTTP := TIdHTTP.Create(nil); FIdHTTP.HandleRedirects := True; FIdSSL := TIdSSLIOHandlerSocketOpenSSL.Create(nil); FIdSSL.SSLOptions.Mode :=…
varlau
  • 21
  • 3
2
votes
4 answers

Delphi + Binance Api + Limit Order Problem Invalid signatur

{"code":3702,"msg":"Invalid signature.","timestamp":1623848681308} i use trbinance.com api. I keep getting the same error procedure TForm1.Button1Click(Sender: TObject); var url, sign, queryString, nonce: string; ST: SystemTime; DT:…
2
votes
2 answers

Delphi and Webservices

I'm developing a tool to integrate two systems and I need some help regarding Delphi and Webservices. First of all, I'm working with Delphi 5.0 and Indy 8.009B. I'm aware that they are both ancient, but that's what I have to deal with for this…
2
votes
1 answer

Delphi: secure/encrypt downloading updates from the Internet

Goal: to download archives from a web-site (ordinary hosting). An user must know nothing about downloading, a connection, a file storage on a web-site. I use idHTTP+SSL to download archives. But user can access a web-site -> I can set Basic…
maxfax
  • 4,281
  • 12
  • 74
  • 120
2
votes
1 answer

how to specify a custom HTTP method in TIdHTTP?

I need to do a call with TIDHTTP by specifying a custom HTTP method. In postman I achieve this by typing the method name in the dropdown where I can choose between GET/POST/PUT/...: how to achieve this in TIdHttp? In this example the HTTP method is…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
2
votes
1 answer

Error connecting with ssl. Eof was observed that violates the protocol

I want to get data from the site https://exergy.skmenergy.com. I use TIdHttp. My settings FHttp := TIdHTTP.Create(nil); FSSLIOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(nil); FSSLIOHandler.MaxLineAction := maException; …
gregor
  • 271
  • 4
  • 10
2
votes
1 answer

Delphi: how to execute procedure in main thread from idHTTPServer.OnCommandGet method

I have to create an embedded HTTP server in our application. This must be created for interprocess communication, because the other side can call only WebService. We don't need to process more requests at once, but I must use the libraries and DB…
durumdara
  • 3,411
  • 4
  • 43
  • 71
2
votes
1 answer

How to convert the parameters of an HTML webform to use with TIdHTTP in Delphi?

How to convert the parameters of an HTML webform to use with TIdHTTP in Delphi? I have a web server, with PHP, and a function to upload files. Via a web browser, I can send files without problems, but when I use TIdHTTP, it presents an error. This…
2
votes
1 answer

Capturing HTML POST with Delphi?

I want to get the post value that I send in HTML with Delphi. I am using TIdHTTPServer. My goal is to get the data sent by POST. But there is a problem. I send it as "form-data" with a tool like the picture below. Capturing the POST…
Halil Han BADEM
  • 208
  • 1
  • 15
2
votes
2 answers

How can I download a Unicode file and load it in a TTreeView?

I need to download a file of TreeView in Unicode using idHTTP (String := idHTTP.Get). After downloading, I need do something with the string and then put it in a TTreeView. I'm using Delphi…
Michael
  • 475
  • 2
  • 9
  • 17
1 2
3
17 18