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
20
votes
3 answers

Download file progressively using TIdHttp

I want to implement a simple http downloader using TIdHttp (Indy10). I found two kind of code examples from the internet. Unfortunately none of them satisfy me 100%. Here is the code and I want some advise. Variant 1 var Buffer: TFileStream; …
stanleyxu2005
  • 8,081
  • 14
  • 59
  • 94
15
votes
3 answers

Delphi: idHttp+SSL

Explain me please how to download a file from a server using SSL (https://). I have not found an appropriate answer in the Internet. Everybody says about TIdSSLIOHandlerSocket, but I have only TIdSSLIOHandlerSocketOpenSSL. I have an error 'could…
maxfax
  • 4,281
  • 12
  • 74
  • 120
10
votes
2 answers

IdHttp Just Get Response Code

I'm using idhttp (Indy) to do some website checking. All I want it to do is check the response code from the server after my request has been sent, I don't want to actually have to receive the HTML output from the server as I'm only monitoring for a…
Flatlyn
  • 2,040
  • 6
  • 40
  • 69
9
votes
2 answers

Delphi: IdHTTP+SSL does not work. No errors!

I use TidHTTP + TIdSSLIOHandlerSocketOpenSSL + 2 DLLs: ssleay32.dll and libeay32.dll from http://indy.fulgan.com/SSL. But I can see all work of my program in HTTP Analyzer! It works as HTTP, not as HTTPS. If I use Opera I cannot see downloading with…
maxfax
  • 4,281
  • 12
  • 74
  • 120
9
votes
2 answers

Delphi: TIdHTTP vs TNetHTTPClient

I'm writing a download manager in Delphi with some custom features like resumable downloads and downloading through proxies. I'm studing different component solutions: Indy and NetHTTP, both seem very close. TNetHTTPClient seem to be an interface…
Simone Nigro
  • 4,717
  • 2
  • 37
  • 72
8
votes
2 answers

TIdHTTP character encoding of POST response

Take following situation: procedure Test; var Response : String; begin Response := IdHttp.Post(MyUrL, AStream); DoSomethingWith(Response); end; Now the webserver returns me data in UTF-8. Suppose it returns me some UTF-8 XML containing the…
whosrdaddy
  • 11,720
  • 4
  • 50
  • 99
8
votes
2 answers

IdHTTP basic authentication access violation

I'm trying to do a HTTP Authentication with Indy HTTP class. But for some unknown reason I'm getting an Access Violation error in this line: IdHTTP1.Request.Authentication.Username := Username; The code stretch is: IdHTTP1:=…
HwTrap
  • 303
  • 1
  • 3
  • 14
7
votes
1 answer

Delphi: Why does IdHTTP.ConnectTimeout make requests slower?

I discovered that when setting the ConnectTimeoout property for a TIdHTTP component, it makes the requests (GET and POST) become about 120ms slower? Why is this, and can I avoid/bypass this somehow? Env: D2010 with shipped Indy components, all…
K.Sandell
  • 1,369
  • 10
  • 19
7
votes
2 answers

Delphi - MemoryStream or FileStream

I am downloading an EXE file from internet using Indy (idHTTP), and I can use memorystream or filestream to save it to disk, but I really do not know if there is any difference between them (maybe in the result structure of the file?). I could't…
Guybrush
  • 1,575
  • 2
  • 27
  • 51
7
votes
1 answer

How to trace raw request and response content of TIdHttp

I implemented same code (to post a form) using delphi and python. The python code works perfectly, but delphi code fails. In python, I can simply write httplib2.debuglevel=4 to see what content has actually been sent to the server. but I have no…
stanleyxu2005
  • 8,081
  • 14
  • 59
  • 94
6
votes
3 answers

IdHTTP.get returning HTTP1.1/ 403 Forbidden

I'm trying to access an update.txt file on my website, using a DelphiXE compiled program and the IdHTTP component. The code I'm using is as follows: procedure TFormAbout.SpeedButtonUpdateClick(Sender: TObject); function CheckUpdates: String; var…
Adrian Wreyford
  • 658
  • 3
  • 10
  • 20
6
votes
4 answers

HTTP continuous packeted stream with Indy

I have a JSON-RPC service which for one of the requests returns a continuous stream of JSON objects. I.e. : {id:'1'} {id:'2'} //30 minutes of no data {id:'3'} //... Of course, there's no Content-Length because the stream is endless. I'm using…
himself
  • 4,806
  • 2
  • 27
  • 43
5
votes
0 answers

Delphi Berlin TIdHTTPServer (Indy 10) [https/ssl/tls]: obsolete key exchange (RSA) and vulnerability Client-initiated renegotiation

I have an IdHTTPServer and I want to implement the support for handling both HTTP and HTTPS requests. This is my code: FSSLHandler := TIdServerIOHandlerSSLOpenSSL.Create(nil); FSSLHandler.SSLOptions.CertFile :=…
ar099968
  • 6,963
  • 12
  • 64
  • 127
5
votes
3 answers

indy GET dowloading speed

Welcome, I have to create caption with information about downloading speed in my application using indy http get compontent. In my mind i found simple solution. At onwork event i will get actual progress of downloading (size) and compare it with…
marc
  • 2,963
  • 7
  • 24
  • 25
5
votes
1 answer

TIdHTTP and TLS SNI doesnt work

On my attempt the TLS SNI extension is missing. I don't know why. Can someone point me in the right direction? Embarcadero® RAD Studio 10 Seattle Version 23.0.21418.4207 Indy version: 10.6.2.5311 OpenSSL:…
1
2 3
17 18