I got most of my old http-code ported to be used successfully with HttpUtils however I am stuck with one issue.
Within my code I am executing a command that will not generate a reply in return from the server. The command is similar to the one below:
The command is being sent to the server and the supposed action on the server is successful however HttpUtils never raises the job-done event probably because it is waiting for a return-value from the server. As a matter of fact, successive attempts using the same command generate an error saying that the previous job has not yet finished.
Can someone please let me know how to modify the HttpUtils-code so HttpUtils doesn't sit there awaiting a response so I can proceed with other commands (jobs). Ideal would be perhaps adding a method to permit it since I use all the other methods for other requests (where I do expect a return-value from the server). Alternatively, I could perhaps handle it with a flag but then I would need to know how to force the job-done event as successful.
I guess I could use the old http-code but it would be nice to be using HttpUtils for all my needs without using the old code for this single problem.
Any help I can get would be appreciated. Thanks!
Within my code I am executing a command that will not generate a reply in return from the server. The command is similar to the one below:
B4X:
http://192.168.1.5:8888/cgi-bin/zapTo?path=123456
The command is being sent to the server and the supposed action on the server is successful however HttpUtils never raises the job-done event probably because it is waiting for a return-value from the server. As a matter of fact, successive attempts using the same command generate an error saying that the previous job has not yet finished.
Can someone please let me know how to modify the HttpUtils-code so HttpUtils doesn't sit there awaiting a response so I can proceed with other commands (jobs). Ideal would be perhaps adding a method to permit it since I use all the other methods for other requests (where I do expect a return-value from the server). Alternatively, I could perhaps handle it with a flag but then I would need to know how to force the job-done event as successful.
I guess I could use the old http-code but it would be nice to be using HttpUtils for all my needs without using the old code for this single problem.
Any help I can get would be appreciated. Thanks!