Maybe the question is very primitive and its solution is in the certificate, but in my opinion, they will answer here much faster and more clearly than I will find.

Essence: a post request is sent via Indy Client:

IdHTTP1->Post(url,list) 

Problem: when the request is sent, the program, waiting for a response, does not respond (hangs). How to make it so that the program remains active while waiting for a response to a request?

  • one
    Try adding a comp. IdAntiFreeze - Timenzzo

2 answers 2

Create a stream and send a request and wait for a response ...

  • Thanks for the answer) Unfortunately, I never worked with streams, and after trying to figure it out, I understood little. Could you describe approximately, or throw off the link where the thread is used for such / similar purposes? - Crasher

The IdAntiFreeze component solved the problem, thanks Timenzzo for the advice. In due course, I will still transfer the request to another thread, but for now this method is sufficient.