I'm using multiple network requests and network download requests to perform http POST and Get.
I have to send a message using POST http request and after sometime download the data at a website using GET request. I have to send the GET request to download the response until I find some required messages by parsing the xml file. And the process repeats multiple times.
I'm not able to implement the above because the network listeners associated to each of these requests are delayed. How to ensure that the following lines of code will execute only after the network listener of the first network request is done?