I need a synchronous connection as is possible to do with ‘URLConnection’. However URLConnection is not available in the iOS library.
What would be the best way to have the following sequence: send a URL to a server, WAIT for the response (or timeout) an handle the content the response of the server?
Dick
I tried to check the XOJO.NET.HTTPSocket ‘page received’ event in a loop. But running the loop apparently blocks the reception of the page. Is there some code that just yields some time to the system so that the page can be received?
Timers are not elegant but you could start a 1 second timer which checks for reception of page.
It’s Async only.
You have to use the error event to catch errors and the PageReceived event to handle the received data.