When sending a PostString request using jOkHTTPUtils2 a PHP Echo response can be shown in the PHP script on the server. The problem is that I have to send a separate request just to get a response value from Echo, and then send another Request to another PHP script to do whatever to be done, depending if the first script returns for example True or False. Is there a way to get the response from Echo in GetString and handle the second action within the same process?
I can illustrate this in a sequence:
1. send a job to the server.
2. the first PHP script returns a response using Echo.
3. if GetString receives True then we calls 4
4. Send a new job to call the second PHP script
Perhaps this can be dealt with differently?
I can illustrate this in a sequence:
1. send a job to the server.
2. the first PHP script returns a response using Echo.
3. if GetString receives True then we calls 4
4. Send a new job to call the second PHP script
Perhaps this can be dealt with differently?