Questions tagged [idhttp]
This is the Indy component for HTTP requests.
268
questions
0
votes
0
answers
123
views
Is it possible to send HTTPS posts in Delphi using Indy?
Is it possible to do https post requests in delphi? I tried a few tricks from the web to no avail. I have no experience in this area other than assembling a WSN using indy and delphi a few years ago (...
0
votes
1
answer
527
views
updating to Indy version 10.6.2
I have not been able to find a place from where I can download the 10.6.2 Indi vesion and upgrade from the older version 1.6.0.4975.
We are using XE4 and Seattle10 and the older IDHTTP component works ...
0
votes
1
answer
215
views
Access violation in Thread with TIdHTTP
An access violation occurs after the stream is terminated, but idHTTP continues to fulfill the request.
Here the constructor and destructor of the thread:
constructor TTelegramListener.Create(...
1
vote
2
answers
168
views
POST with TIdHTTP hangs on retrieving the JSON response
This question is maybe more a tip for people to search a solution if they have the same problem (as I found the solution eventually).
I had an application that does some HTTP requests with a local ...
0
votes
1
answer
159
views
How to download via TIdHTTP parts from multiple servers?
Currently I use TIdHTTP in Delphi 11 to automatically download updates of my software. My installer is relatively big (about 100 MB) and the download takes a couple of minutes or even more.
Supposing ...
2
votes
1
answer
212
views
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 ...
0
votes
0
answers
494
views
TIdHTTP raise Exception "Socket Error # 10054 Connection reset by peer" [duplicate]
When I get a URL with TIdHTTP, it displays an error dialog:
Socket Error # 10054 Connection reset by peer
I don't want to display this error dialog. How can I catch the error with try...catch and ...
1
vote
1
answer
229
views
Use Greek letters in URL in GET request
I'm developing an Android app in Delphi 10.4. My client communicates with the server through web services.
I use a search-by-name service with the GET method to take a list of names depending on what ...
0
votes
0
answers
65
views
Google Drive issue when trying to download many times
I have problem using Indy's TIdHTTP in my Windows app created with C++Builder XE7.
I am doing a simple task... when my app launches, it goes to a link with a direct download and the app begins to ...
0
votes
1
answer
887
views
Handle custom Error message on Bad request
I'm developing an Android app (Client). The server works with C#. When I make some request specifically some Posts, I'm getting an error message on bad request such as 'HTTP/1.1 404 Not Found' which ...
0
votes
0
answers
433
views
Issue in downloading an image in Delphi
I am writing an image downloader software. But I have problem to download some images such as:
https://books.google.com/books/content?id=8_pCYmpCu6UC&pg=PT4&img=1&zoom=3&hl=en&bul=...
-1
votes
1
answer
457
views
Indy error in Delphi 7: Undeclared identifier: 'hoWantProtocolErrorContent'
When using TIdHTTP to send GET commands with JSON variables, sometimes the server returns me the error below:
HTTP/1.1 500 Internal Server Error
Using Insomnia for testing JSON results, I see an ...
2
votes
1
answer
1k
views
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);...
0
votes
0
answers
293
views
Delphi FMX TIdFTP onWork, onWorkBegin, onWorkEnd not working
I've been fighting with TIdFTP and Delphi FMX for a while and I don't get good results, so, I don't really know what to do.
So, the thing that I want to do is to show a ProgressBar while GETTING and ...
0
votes
0
answers
381
views
Indy IdHttp Digest Authentication - 401
When you try to take a picture from a camera, the authentication function does not work. I read all the other posts on the subject, but without success with this device.
Indy 10.6.2.0
Uses ..., ...
1
vote
0
answers
561
views
Connection error with TIdHTTP in Delphi application. How to solve it?
I have a software which is working faultlessly for 2 years now. This software connects to our remote server every 5 days to check for version updates as well as users license status.
But from ...
0
votes
0
answers
408
views
Indy TIdHTTP can´t load webpage
I am trying to read a specific webpage which loads in Firefox without any problems, but in Delphi I get a 404 error. How can I fix it? Maybe they don´t want bots to scrape their page...
IdHttp1 := ...
0
votes
1
answer
242
views
TIdHTTP filestream incomplete downloads
I am using TIdHTTP.Get() to retrieve (potentially large) files into a TFileStream, basically;
filestream := TFileStream.Create(destination, fmCreate);
http.HandleRedirects := True;
try
http.Get(url, ...
0
votes
1
answer
499
views
Problem with content range with Indy TIdHttp put command against MS Graph API
I am trying to use TIdHttp.Put() for Microsoft's Graph API, but it is not possible to use the Content-Range header. If I use the Ranges property then I get an error about a missing Content-Range, and ...
0
votes
1
answer
1k
views
TIdHTTP Post to API and save response as a .pdf file
I'm calling an API URL with some parameters according to the documentation provided.
The way the API is set up, the response should be an auto-download of a .pdf file.
The parameters are:
number - ...
0
votes
1
answer
847
views
IdHTTP EIdHTTPProtocolException when using GET
I am trying to communicate with a Web Relay using the TIdHTTP.Get() function.
According to their documentation, each XML response from the Web Relay is 157 bytes long. Below is an example XML response ...
2
votes
4
answers
1k
views
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: ...
1
vote
1
answer
2k
views
"Out of memory while expanding memory stream" error when attempting to download a file using TIdHTTP
I am attempting to download a file from a web server using the standard TIdHTTP and TIdSSLIOHandler components in Delphi 10.4:
memorystream := TMemoryStream.Create;
http.request.useragent:='Mozilla/5....
1
vote
0
answers
1k
views
Capture post json body in delphi IdHTTPServer
I have a IdHTTPServer in delphi indy and I want to recieve a json that is send in the body.
I have this:
procedure Treportserver.IdHTTPServer1CommandGet(AContext: TIdContext;
ARequestInfo: ...
1
vote
2
answers
2k
views
Delphi TIdHTTP.Get() API fails with 400 Bad Request when parameter value contains space
I'm sending a number of parameters to an API using the TIdHTTP.Get() method.
I pull values for the actual API parameters from string variables or component Text properties (like a ComboBox, for ...
2
votes
2
answers
575
views
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, ...
3
votes
1
answer
2k
views
Even if SslOptions are set i keep having "Socket Error # 10054 Connection reset by peer." in Indy using TIdHTTP doing get from https url
I am using TIdHTTP to get from a https URL, my code works fine until http is used, but on https i have
Socket Error # 10054 Connection reset by peer.
In many SO answers I Read about TLS 1.0 being ...
1
vote
1
answer
889
views
Delphi Indy TIdHttp and multipart/x-mixed-replace with Text and jpeg image
I´m using a Dahua Facial terminal and it has a API like (CGI style) and a SDK. i asked some questions about dll convertions, but now i´m trying to use de API too.
The API to monitoring the events ...
2
votes
1
answer
389
views
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 ...
2
votes
1
answer
3k
views
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....
1
vote
1
answer
225
views
Delphi - how to create folder by Indy on my HTTP page
Can anybody help me with folder creation on my HTTP server (It is SanDisk Connect WiFi)
SanDisk has a own address : http://172.25.63.1/myconnect/
I am able by Indy from Android to do follow :
...
0
votes
1
answer
41
views
Indy idHTTP continue execution after error
I have an indy IDHTTP component which is called repeatedly using a timer (4-5 times a second)
I have a poor internet connection so occasionally there are timeout problems or garbage responses that ...
1
vote
1
answer
267
views
Is TIdHTTP threadsafe?
I'm using TIdHTTP in my class to handle web APIs (TWebAPI). Since it might happen that this class is used in a TIdHTTPServer.OnCommandGet event handler, I need to make sure that TWebAPIis thread safe.
...
2
votes
1
answer
2k
views
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 ...
1
vote
1
answer
127
views
TIdCompressorZLib doesn't work in FireMonkey app compiled for Android
I have a function using TIdCompressorZLib and TIdHTTP, like this:
pegar := tidhttp.create(nil);
compressor := TIdCompressorZLib.create(pegar);
seguro := TIdSSLIOHandlerSocketOpenSSL.create(pegar);
...
1
vote
1
answer
112
views
Delphi XE8 idHttp Erromessage text coding is wrong
I am using Delphi XE8 and I am sendig a PUT message via idHttp.
Http.Request.CustomHeaders.Clear;
Http.Request.BasicAuthentication := false;
http.Request.Method := 'PUT';
Http.Request.Accept :=...
0
votes
0
answers
260
views
Https Post gives a error 500 on some computers
I'm using Delphi XE6 and Indy 10.6.0.5122.
I make a POST to my own web server and it works fine on many computers including my own, but it does not work on some and I can't find out why. The ones it ...
1
vote
1
answer
376
views
Why TIdHTTP can't get a result correctly, but Postman can
I have written a function in Delphi XE3 to get some data from the web using TIdHTTP. It can't get a result correctly, but postman can. Using a browser also returns data normally.
Can someone help here?...
1
vote
0
answers
113
views
TidHTTP XML response doesn't contain body
I am currently sending an XML POST (using TidHTTP) to a web server, and I am successfully getting a response, however the body is missing! I feel like I have tried everything to get this working! The ...
2
votes
1
answer
287
views
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 ...
1
vote
1
answer
506
views
POST with Indy + SSL + Proxy
I'm trying to do a POST request through proxy using https.
Code looks like:
FHttp := TIdHttp.Create(nil);
FHttp.ProxyParams.ProxyServer := Host;
FHttp.ProxyParams.ProxyPort := Port;
FHttp....
2
votes
1
answer
1k
views
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 ...
-2
votes
1
answer
80
views
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 ...
-3
votes
1
answer
400
views
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('...
1
vote
1
answer
766
views
Delphi /w Indy 10: Get Content after ERROR 400 (idHTTP) [duplicate]
I am trying to get around the Indy idHTTP Component and have some issues retrieving the server response after a GET/PUT/POST if it's not 200 OK.
Even if I disable the ProtocolException, Response....
0
votes
3
answers
6k
views
IdHTTP how to send x-www-form-urlencoded body
I have tested POST function in PostMan to do POST function with body parameters as below:
Here is eBay's document for this function:
HTTP method: POST
URL (Sandbox): https://api.sandbox.ebay....
2
votes
2
answers
22k
views
Could not load SSL library [closed]
I'm trying to use REST. So I'm using the TIdHTTP component. But it says 'Could not load SSL Library'.
What am I missing? My knowledge about SSL is zero.
I'm using Delphi 2007, Indy 10.1.5, and Windows ...
1
vote
1
answer
613
views
Delphi XE7 Indy idHTTP client post error authorising
I'm attempting to connect to an online API using Indy HTTP client. The error I'm getting is "Authorisation failed (that's our message) EIdOSSLUnderlyingcryptoerror Error connecting with SSL, error:...
0
votes
0
answers
489
views
TIdHTTP.Get() equivalent for HTTPS without requiring we supply SSL libraries?
Does Indy have an equivalent of TIdHTTP.Get() for use on https:// URLs that doesn't require us to ship SSL libraries?
Or, must we use something like System.Net.HttpClient as shown in this sample:
...
2
votes
1
answer
378
views
TIdHTTP: Select outgoing IP for HTTP request?
I have a machine with several different static IPs. Is it possible to select the outgoing IP address for HTTP requests via TIdHTTP (Indy)?