Android Question HTTP Responses

Derek Jee

Active Member
Licensed User
Longtime User
Hi there

I sent a HTTP request to a server and need to process data on the device whether it is successful or not. When I create the job is there a way of getting the tasked in the requesting sub and also in the jobdone sub. My server is not behaving and not sending the response body for some error codes and i'd really like to return a value and process that but I can't. So ideally id like the tasked at sending and jobdone.. (or any other ideas would be great too..)

Thanks,


Derek.
 

walterf25

Expert
Licensed User
Longtime User
Hi there

I sent a HTTP request to a server and need to process data on the device whether it is successful or not. When I create the job is there a way of getting the tasked in the requesting sub and also in the jobdone sub. My server is not behaving and not sending the response body for some error codes and i'd really like to return a value and process that but I can't. So ideally id like the tasked at sending and jobdone.. (or any other ideas would be great too..)

Thanks,


Derek.
Have you seen this https://www.b4x.com/android/forum/threads/httputils2-web-services-are-now-even-simpler.18992/
 
Upvote 0

Derek Jee

Active Member
Licensed User
Longtime User
Hi Walter,

Yes I am using this. I had a server issue which was not allowing the body to be sent with codes of 400 and greater. I have fixed this now and get the response, and am in the middle of implementing it.. Thanks for the heads up..

Derek
 
Upvote 0
Top