JOSE RAMON New Member Licensed User Longtime User Oct 8, 2019 #1 Hello! I would like to know how I can get the "status code" of a call to REST, using "httpUtils2" I found this, but it is not clear how to use it https://www.b4x.com/android/forum/threads/http-response-status-code.55579/#content Thanks!!!
Hello! I would like to know how I can get the "status code" of a call to REST, using "httpUtils2" I found this, but it is not clear how to use it https://www.b4x.com/android/forum/threads/http-response-status-code.55579/#content Thanks!!!
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2019 #2 Use OkHttpUtils2. B4X: Dim j As HttpJob j.Initialize("", Me) j.Download("https://www.google.com") Wait For (j) JobDone(j As HttpJob) If j.Success Then Log(j.Response.StatusCode) End If j.Release Upvote 0
Use OkHttpUtils2. B4X: Dim j As HttpJob j.Initialize("", Me) j.Download("https://www.google.com") Wait For (j) JobDone(j As HttpJob) If j.Success Then Log(j.Response.StatusCode) End If j.Release