Matured such a question: Delphi sends a request to the site, the site processes it and must send it back. But I can not figure out how to find out where it is back? Delfi applications will be many ... how do I know what to send to him? How best to implement it with the least effort?

  • Feel free to show your code. What are you sending? how exactly do you do it? - Nofate
  • I think this is quite a trivial task, many have encountered it. After all, do the same licensed programs that are checked by key with the site and vice versa, the site with the program? - oldzas
  • so what? she comes to a certain Internet address with some parameters, gets an answer with some parameters. - thunder
  • you decide what you want ... - thunder

1 answer 1

Start by looking at how you send the request. If TWebBrowser, then wait for the OnDocumentComplite event, if INDY, then the answer will be in IdHttp. Take a sniffer and see how the browser communicates with the site.

  • one
    Are you kidding me? and how the server finds out which browser to return, there are millions of browsers. the one who sent the request to that and will return. - vdk company
  • one
    This you did not understand, the server will return the answer to the one who sent the request , and it does not matter whether it is a browser or your program, no indicator is needed. Even if it is 1000 of your programs running simultaneously from one computer, the server will return the answer to the one who sent the request. all conventions are spelled out at the protocol level, so don't even bother. - vdk company
  • one
    @oldzas to start read about http technology and do not disgrace! zyzh even not so, read HOW the network in principle works. it has nothing to do with the browser or the program and other applications. - thunder
  • one
    @savro and train, let it be, but it will not give an understanding of the questions asked) everything is much worse .... :) why there was no question about: "I give money to the shop assistant in the store. How does she know that I should give the change?" ", this is about% of this level) - thunder
  • one
    Well, the person sent the request and DOES NOT TURN OFF waiting for a response from the server. if you want the server to give "sometime later," then it will not work. or in the first request to receive back some kind of identifier and then all the same the CUSTOMER will connect. and I, for example, will not give you any left connections to my computer. It’s not just as by default all new connections are closed. - thunder