Z ziomorgan Active Member Licensed User Longtime User May 6, 2014 #1 Hi, it is possible to read the response of the http job request even in case of error? The dropbox authentication give a json response in case of error. thanks
Hi, it is possible to read the response of the http job request even in case of error? The dropbox authentication give a json response in case of error. thanks
killiak Member Licensed User Longtime User May 6, 2014 #2 I don't know if i understand you, but, if you ask with a If myJob.Success = False then you can manage a Non sucess Poststring Another aproach is that you check if myJob.errorMessage but in this case you are checking for a 403,404, 500 error, etc... Is that what are you trying? Of course myJob is the HttpJob Variable Cya! Upvote 0
I don't know if i understand you, but, if you ask with a If myJob.Success = False then you can manage a Non sucess Poststring Another aproach is that you check if myJob.errorMessage but in this case you are checking for a 403,404, 500 error, etc... Is that what are you trying? Of course myJob is the HttpJob Variable Cya!
Erel B4X founder Staff member Licensed User Longtime User May 7, 2014 #3 The full error response is printed in the logs. You can modify HttpUtils2Service and add it to the ErrorMessage variable. Upvote 0
The full error response is printed in the logs. You can modify HttpUtils2Service and add it to the ErrorMessage variable.
Z ziomorgan Active Member Licensed User Longtime User May 7, 2014 #4 Erel said: The full error response is printed in the logs. You can modify HttpUtils2Service and add it to the ErrorMessage variable. Click to expand... Ok, I have already modified the b4a version but where can i find the source code for b4j version ? Thanks Upvote 0
Erel said: The full error response is printed in the logs. You can modify HttpUtils2Service and add it to the ErrorMessage variable. Click to expand... Ok, I have already modified the b4a version but where can i find the source code for b4j version ? Thanks
Erel B4X founder Staff member Licensed User Longtime User May 7, 2014 #5 See the first search result: http://www.b4x.com/android/forum/pages/results/?query=jhttputils2&page=1&prefix=0 Upvote 0
See the first search result: http://www.b4x.com/android/forum/pages/results/?query=jhttputils2&page=1&prefix=0