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
-1
votes
1 answer

TIdHTTP.Get very slow with HTTPS URLs

Put a TIdHTTP component and a TIdSSLIOHandlerSocketOpenSSL component on a VCL form. Do not assign anything to IdHTTP1.IOHandler property. Then get the HTML from a HTTP URL, for example: sHTML := IdHTTP1.Get('http://www.pixar.com'); • This is very…
user1580348
  • 5,721
  • 4
  • 43
  • 105
-1
votes
3 answers

Check if it is possible to download file with delphi

Check if it is possible to download file with delphi Good day ... I'm starting in Delphi and I am creating a program to download files from HTTP ... I'm using:   IdHTTP.Get (URL FileDownload) But my program generates error when it can not download…
user3185448
  • 81
  • 1
  • 10
-1
votes
1 answer

Delphi XE3 Indy Stuck and not returning

I am having trouble getting Indy to return upon certain URLS and I am not sure what is going on. I have some very simple test code to return the URL that I want and drop the HTML into a TMemo. With IdHTTP Do Begin s := Get(txtURL.Text); …
Anthoni Gardner
  • 929
  • 1
  • 9
  • 17
-2
votes
1 answer

Delphi - ADVFN Login Problems

Using Delphi 10.3 with Indy Im trying to log into ADVFN. I have setup an account with ADVFN, and have tracked network traffic with Firefox Debugger etc. Ive tried multiple IdHTTP examples, but still no success. Any help would be appreciated. Im…
Lee Parvin
  • 17
  • 6
-2
votes
1 answer

HTTP post without waiting for a response

Using Indy's TIdHTTP component, I want to do a POST operation without waiting for a response from the server. The normal function I use is: IdHTTP1->Post(sURL, reqStream, resStream); But I want to skip the response to save time so Post() exits…
Omar
  • 11
-2
votes
1 answer

Using Indy TIdHTTP Post Method on Secure Site with Cookies

I am trying to use the TIdHTTP.Post() method to submit a form on a website that I just can't figure out. I have tried several iterations and changes to my code, and have hit a road block that I need to get help with. I am relatively new to TIdHTTP…
Sercho
  • 305
  • 2
  • 9
-2
votes
1 answer

Indy SSL not working as expected

The following code works as shown, but not with the commented out URL. Can you see my error? var IdHTTP1: TIdHTTP; sl: TStringList; Src : string; LHandler: TIdSSLIOHandlerSocketOpenSSL; begin try IdHTTP1 := TIdHTTP.Create(nil); …
kualoa
  • 17
  • 1
  • 4
-2
votes
2 answers

Delphi IdHTTP response text

How can I get the response text in Delphi's IdHTTP similar to JS ajax response? There is standard responseText property that contains page content, also IdHTTP has responseCode property, but it represents HTTP status code. For example, in JS ajax…
user2534426
-2
votes
2 answers

How to use an external library in my component?

I created a component , and I need to use IdHttp component (Indy) in it, so first I installed Indy in my IDE,I created the component and istalled it, then I added to uses the unit IdHttp so I can use IdHttp in my component. But, when I compile the…
Safa
  • 485
  • 2
  • 5
  • 24
-3
votes
1 answer

Delphi: stop idHTTP working while time out is

I do idHTTP.Get('http://example.com/1.zip', FStream); A server doesn't response...and idHTTP waits for a connect to download a file I need to stop idHTTP working. If it's connected I can do idHTTP1.Disconnect. But what about a time when idHTTP isn't…
maxfax
  • 4,281
  • 12
  • 74
  • 120
-3
votes
1 answer

I need to know where I'm wrong in json object to POST using TIdHTTP in Delphi

source gives socket error 14001, WITH OBJ JSON PARAM MESSAGE FOR POST jso := TlkJSONobject.Create; // (data) as TlkJSONobject; jso.Add('InvoiceNumber', ''); jso.Add('POSID', '910441'); jso.add('USIN', ePOSNo.Text); jso.add('DATETIME',…
Hamza
  • 33
  • 6
-3
votes
1 answer

Error connecting with SSL when posting using Indy

I'm trying to post on a web service via TIdHTTP (Indy) using Delphi 5, and whenever i call the post method, it returns an "Error connecting with SSL error" exception. This is the code i'm trying to run FHandle :=…
Rodolfo Donã Hosp
  • 1,037
  • 1
  • 11
  • 23
-3
votes
1 answer

XML response from the server idhttp

Get send request to the server and receives an error 409, the program is suspended, using try except and ignore her, I had also an error 409 and XML response, how do I read it? HTTP.Response.gettext - not give it to me, only the information about…
1 2 3
17
18