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

idhttp get string and convert it to Integer

i am trying to get string from url and convert it to integer i am doing something like this var stringtoget : string; stringint : integer; stringtoget := IdHTTP1.Get('http://url/text.txt'); stringint := strToint(stringtoget ); But i get the…
Vlark.Lopin
  • 762
  • 10
  • 21
0
votes
0 answers

How to use and stabilize IdHttp for a large number of sites

I have about 30 unique sites which I login to and download a few files from each one of them. Sometimes I have about 50 sites, which the 20 extra are the same as previous ones but with different login credentials. If I run the download process for…
ali ahmadi
  • 179
  • 3
  • 20
0
votes
1 answer

Using System.threading, how to check and terminate an already started iTask in case of running for an specific amount of time

I'm a novice in Multithreading, i have a procedure that goes through a series of operations using indy (login to a site and download files and ...), sometimes when a site is not responsive or it takes too long, no exception occurs even with…
Ali Ahmadi
  • 93
  • 1
  • 3
  • 12
0
votes
0 answers

Exception HTTP/1.1 400 Bad Request with Indy TidHttp

I have a main application which calls a DLL. This DLL is where I do my HTTP requests using Indy's TIdHTTP component. It runs fine the first time, but then after closing the DLL and re-opening it, I get an HTTP/1.1 400 Bad Request exception: var …
Alec
  • 569
  • 2
  • 17
  • 27
0
votes
2 answers

IdHttp : Error 10053 when sending login post

No matter what i do or try, I keep getting 10053 error when sending login post for a site I use the code below to send the login post parameters which you also can see, it has a VerificationCode which i must extract from the login page first and i…
Ali Ahmadi
  • 93
  • 1
  • 3
  • 12
0
votes
1 answer

idHttp : error 500 internal server when site is https

I am working on a project involving login and download, for more than 20 site, in some cases, the sites are very alike, even their structure is the same i have encountered a problem recently, some of the same structured sites are http and some are…
Ali Ahmadi
  • 93
  • 1
  • 3
  • 12
0
votes
0 answers

How to call multiple post request inside an anonymous thread

how to execute multiple posts requests at the same time, this code sample is only represent a single anonymous thread, total are 15, however, even with one thread the post response becomes slower by time, at first it starts fast, then it slows down…
D.Luffy
  • 17
  • 1
0
votes
0 answers

idhttp : password changes with each login using a loginkey

I have already successfully logged in many sites using idhttp.post() but this particular site has a bit different login process After analyzing the site using http analyzer i can see that at the user, pass part, the username is what i have sent, but…
Ali Ahmadi
  • 93
  • 1
  • 3
  • 12
0
votes
0 answers

How to run __doPostBack and catch download link in idHttp

i have used idHttp.post() to login inside a site then i posted my information to the download page which is something like an archive (needs start date, end date and etc) and then sent submit button post when i open the final response code (after…
Ali Ahmadi
  • 93
  • 1
  • 3
  • 12
0
votes
1 answer

How to get Instagram following list using http component in Delphi 10

I'm trying to get my instagram "following" list using only http component. I've tried to use lHTTP.Get('https://www.instagram.com/Myusername/following/'); but there are no usernames in the decrypted html. However, I saw some guys using it without…
ColdZer0
  • 233
  • 1
  • 4
  • 19
0
votes
1 answer

How to catch 404 error and and find what causing it from listbox

i want to catch to 404 error exception and catch the item that causing this error from the listbox1 and store it in listbox2! my code so far : procedure TForm1.Button3Click(Sender: TObject); var s: string; lHTTP: TIdHTTP; IdSSL :…
ColdZer0
  • 233
  • 1
  • 4
  • 19
0
votes
0 answers

Using IdHttp and IdConnectionIntercept created at runtime

I have a method that makes a connection with a RESTful server, and it uses the TIdHttp components, TIdConnectionIntercept and others created at runtime, so far so good, the problem is that I need to get the return of the event "OnReceive" the…
0
votes
0 answers

TIdHTTP GET Round Trip Request/Response Time in MSecs

I'm using TIdHTTP to make HTTP GET requests to get wiki pages (executed until x >= 9 times using a for loop statement). I am trying to use TStopWatch to measure the HTTP round trip request/response time in milliseconds of each GET requests. I have…
0
votes
0 answers

Delphi: IdHTTPServer (Indy 10.6) best practice for shared variable in a multithreading context

I have a TMyIdHTTPServer server object extends TIdHTTPServer. My TMyIdHTTPServer has some private variable shared in a multithreading context (i think TIdHTTPServer creates a new thread for each request). I'm not a delphi or multithreading…
ar099968
  • 6,963
  • 12
  • 64
  • 127
0
votes
1 answer

How to use multithreading to write downloaded data in one file in a mulithread download application

I want to make a multithread download using Idhttp (indy), so I have a principal thread that starts secondary threads, each secondary thread creates a file: "fileThreadNB" that is supposed to contain downloaded data, then this secondary thread…
Safa
  • 485
  • 2
  • 5
  • 24