a wrote:
> If I want to process the search result, I need to fill out the form, submit
> and wait for the reply from the server before I process the search result.
How else would you process the result if you don't wait for the reply?
> I would like to add some traffic control to it, like writing a loop to wait
> for the $response -> is_success, then break the loop.
You don't need to "loop", you simply wait for the response. The request
will succeed or fail.
Post the request.
Wait for success/failure.
if success, do something else
else it's a failure, do something else
>It may need to pass
> the token to the OS for receiving the success message. How can I do it?
What the heck is "the token"?
Give us some code with more of what you're wanting to do.
|