277
questions
1
vote
1
answer
86
views
Adding certificate to Fiddler on request
I want to use Fiddler as a proxy for debugging purpose. Without fiddler everything works perfectly fine.
I have to add a certificate to my HTTP request. My code looks like this:
constructor ...
0
votes
0
answers
51
views
Why my Delphi/11.3 Android application doesn't deploy files to TPath.GetDocumentsPath?
In my Delphi/Android application I try to use TIdHTTP. I deploy the .so files as in the screenshot below
and I set IdOpenSSLSetLibPath(TPath.GetDocumentsPath) but when I run it, I receive this error:
...
0
votes
0
answers
38
views
Android application: Error "failled to load /data/user/0/com.embarcadero.TimApp/files/libcrypto.so"
In my Delphi/Android application I try to use IdHTTPS. I deploy the files .so as in the screenshot bellow
and I set IdOpenSSLSetLibPath(TPath.GetDocumentsPath) but when I run it i receive the error &...
1
vote
1
answer
95
views
Error 403 using TIdHTTP for a GET request in Delphi RIO - Same url works in Postman
I am having a problem.
I try various possible solutions, but something is still wrong in my code, and I can't figure out what is it.
Function:
function HTTPRestApiGet(var HTTP: TIdHTTP; necesitaSSL: ...
0
votes
0
answers
61
views
Indy IdHTTPWebBrokerBridge/TIdCustomHTTPServer threads keep on increasing
I have an TIdHTTPWebBrokerBridge class which descends from TIdCustomHTTPServer and overrides the DoCommandGet() method. Below is the basic code structure.
procedure TIdHTTPWebBrokerBridge.DoCommandGet(...
0
votes
1
answer
119
views
Using Indy HTTP under C++Builder to download file located behind a proxy
I am blocked in my attempt to download a file via a proxy using TIdHTTP. An exception EIdHTTPProtocolException is raised with the simple message error '<?xml version="1.0" encoding="...
1
vote
1
answer
133
views
How to correctly read an endless stream from InternetRadio using Indy TIdHTTP?
I am writing a UPNP-Controller.
To supply the Artist and Title, it's necessary that I can get the metadata, probably supplied as XML somewhere in the Stream.
For that, I want to read the (endless) ...
-1
votes
1
answer
128
views
Why is TIdHTTP.Head() generating an 'HTTP/1.1 406 Not Acceptable' exception?
I'm trying to use TIdHTTP.Head('https://www.myurl.com/myfile.zip'), just to get the file size before downloading it.
I get the file size so I can open multiple threads downloading parts of the file in ...
2
votes
1
answer
279
views
How to request insecure SSL with TIdHTTP?
I need to use TIdHTTP to request an HTTPS URL for an IP address on an SSL connection, so certificate validation will fail (if the peer even has a cert).
curl has the -insecure parameter and it works ...
0
votes
0
answers
304
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
2k
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
329
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
244
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
222
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
353
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
763
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
402
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
74
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
1k
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
1
answer
536
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
698
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
2k
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
391
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
554
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
780
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
564
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
331
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
626
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
1k
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
2k
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
3k
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
745
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
1k
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
634
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
4k
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
239
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
52
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
395
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
135
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
142
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
332
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
450
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
139
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
294
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
654
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....