Questions tagged [idhttp]
This is the Indy component for HTTP requests.
261
questions
0
votes
0
answers
11
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
86
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
114
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
53
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
145
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
77
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
92
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 ..., ...
0
votes
0
answers
32
views
How to load SSL library on Android? [duplicate]
I am trying to run an app developed with Delphi using TIdHTTP, but I am receiving an error:
Could not load SSL Library
It is not clear for me how I am supposed to install it!
1
vote
0
answers
167
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
108
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
114
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
158
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
393
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
197
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 ...
1
vote
3
answers
763
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
730
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
346
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
731
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
235
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, ...
2
votes
1
answer
811
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
412
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
173
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 ...
1
vote
1
answer
1k
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
154
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
24
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
151
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
914
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
89
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
76
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
100
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
235
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
71
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
209
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
390
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
751
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
64
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
260
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
430
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
4k
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....
0
votes
2
answers
15k
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
503
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
199
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
289
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)?
1
vote
0
answers
261
views
Segmentation fault with TidHttp in a Android Service
I created a Android local service in delphi that triggers a thread that creates a Tidhhp, if I stop the service through the command JavaService.stopSelf and start the service again without closing the ...
3
votes
0
answers
790
views
TIdHttp custom header on redirect
I have an issue handling redirects with a custom header. A few requests to a REST-API endpoint are acknowledged with HTTP/1.1 301 Moved Permanently.
This is my code:
procedure APIRequest(const url, ...
0
votes
0
answers
41
views
How to post a file with chinese characters in TIdHttp [duplicate]
I'm using telegram bot api to send a document. it was working OK until I need to send files with chinese characters. the file is sent correctly but the filename is garbage. Here is my code with tests :...
1
vote
1
answer
981
views
No mapping for the Unicode character exists in the target multi-byte code page : how to convert MemoryStream to String
My goal is to be able to convert TMemoryStream to string. I have this code to get the data into the TMemoryStream:
var
idHttp : TIdHTTPEx;
url : string;
slTemp : TStringList;
memoryStream : ...
2
votes
2
answers
767
views
TidHTTPServer "Out of memory" on large file upload
I'm using Delphi 10.3.1 and Indy TIdHTTP / TIdHTTPServer
I created a client / server application to archive files.
The client uses a TIdHTTP component, the code is something like this:
procedure ...
2
votes
0
answers
1k
views
How to create HTTP Header for eBay Browse API Function
I am trying to get a Product Review Rating through eBay's Browse API. Here is my code for this function:
sHeaders := TStringList.Create;
sHeaders.Add('X-EBAY-C-ENDUSERCTX=' + '"affiliateCampaignId=' +...
0
votes
1
answer
402
views
TIdHttp Error 404 Permission denied (Error #10013)
I always use TIdHttp to get data from some pages, but when I try to get the data from the url "https://www.melhorcambio.com/" I get the error (StatusCode = 404 - ReasonPhrase = Permission denied (...