NJDude Expert Licensed User Longtime User Oct 20, 2011 #1 I have this problem, how do I detect a timeout?, for example: B4X: req.InitializeGet("http://www.Website.com/Script.php") req.Timeout = 10000 hc.Execute(req, 1) And let's say after 10 seconds goes by it times out, how do I capture that event and display a MsgBox or something saying Time out!!! Thanks.
I have this problem, how do I detect a timeout?, for example: B4X: req.InitializeGet("http://www.Website.com/Script.php") req.Timeout = 10000 hc.Execute(req, 1) And let's say after 10 seconds goes by it times out, how do I capture that event and display a MsgBox or something saying Time out!!! Thanks.
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2011 #2 See the example here: Basic4android - HTTP The ResponseError event will be raised. Note that HttpUtils is usually easier to work with. Upvote 0
See the example here: Basic4android - HTTP The ResponseError event will be raised. Note that HttpUtils is usually easier to work with.