I have a system service app and I need to post a single variable to a php script to run on app open. I’ve noticed that if a firewall is blocking or the php script fails then the system service app doesn’t open. It flashes a quick error message and crashes. Is there a more reliable way to post a var to a php script on app open than the way I am currently doing this? Thanks!
My initialize method:
Dim d As New Dictionary
Dim sckHTTP As New SckHTTP
WriteStatus "Initialize!!!"
d.Value("ID") = ID
SckHTTP.SetFormData(d)
SckHTTP.Post(gstrURL + "initialize.php")
No I admit I am new to using SckHTTP and I am not implementing the error handler. I guess I should dig through the examples unless you have a quick one to share with me? Thanks!
Well, SckHTTP is not a built-in class. That would imply you have subclassed it. If so, you can just add the Error event handler to the subclass and put some code there to maybe help diagnose the problem.
There are several HTTP examples included with Xojo.