B4A Code Snippet Disable automatic redirections with OkHttpUtils2 - Erel    Jun 1, 2020   (1 reaction) Activity_Create(FirstTime As Boolean)
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://www.b4x.com/b4a")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log(j.Response.StatusCode)
Else If Floor(j.Response.StatusCode / 100) = 3 Then
Log("Moved to: " & j.Response.GetHeaders.Get("location"))
End If
j... B4A Question HttpJob error using OkHttpUtils2 - TILogistic (first post)    Jun 27, 2023
The message erro is j.Response.StatusCode: -1 using my IP and file
Whe i delete the file on my server the erro is j.Response.StatusCode: 500
What is the j.Response.StatusCode: -1??
https://www.b4x.com/android/forum/pages/results/?query=j.Response.StatusCode... B4J Library [B4X] jRDC2 - B4J implementation of RDC (Remote Database Connector) - Erel    Jun 22, 2026   (42 reactions)   tags: RDC, jRDC2, conectate a un servidor, Remote Connector, DB Remote, Myapp with B4A, B4J and B4i is responsible for sending the requests and handling the responses. jRDC2 can work... servers. jRDC2 is the latest version. All new projects should use this version. jRDC2 is made... of the server hosting jRDC2. It must end with /rdc. 2. Add DBRequestManager class to your project...)) Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(j As HttpJob) If j.Success Then req.HandleJobAsync(j, "req") Wait For (req) req_Result(res As DBResult... B4J Question Java.net protocol exception (status code 103) - Kevin (first post)    Dec 3, 2025 a browser, but it causes an error in B4J. Dim j As HttpJob j.Initialize("", Me) j.Download("https://early-hints.fastlylabs.com/") Wait For (j) JobDone(j As HttpJob) Log("Success = " & j.Success) Log("Response = " & j.Response.StatusCode) If j.Success Then Log("String = " & j.GetString) j.Release... B4J Question Server & reverse proxy - wl    Jun 1, 2021 the GetAsynchronously call. Anyone have an idea ? Thanks Dim j As HttpJob j.Initialize("", Me) j.Download(proxyURL) Wait For (j) JobDone (j As HttpJob) If j.Success Then resp.Status = j.Response.StatusCode j.Response.GetAsynchronously("response", resp.OutputStream, True, 1) 'Resp is the ServletResponse param of the Handle method. Wait...Hi, I'm trying to implement a basic reverse proxy in jServer, by implementing a (Servlet... Spanish Httpjob no esta trabajando o no recibe respuestas - laurokarlos (first post)    Aug 14, 2025
Log(j.Response.StatusCode)
Result = j.GetString
Else
'error
Log(j.Response.StatusCode)
Log(j.Response.ErrorResponse)
End If
j.Release
Return Result... As ResumableSub
Dim Result As String
Dim j As HttpJob
j.Initialize("", Me)
j.Download( "https://v3.football.api-sports.io/fixtures?live=all")
j.GetRequest... B4A Question HttpJob How to know if 401 Unauthorized result - Spavlyuk (first post)    May 5, 2022 You can get the status code with
J.Response.StatusCode... B4A Question How to treat httpjob timeout? - TILogistic (first post)    Nov 10, 2021 ref.
j.Response.StatusCode
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
121496... B4J Question Server Filter - resp.SendError has no effect - Alexander Stolte    Oct 3, 2020 after a short time, if the filter returns false: ResponseError. Reason: java.net.SocketTimeoutException: timeout, Response: java.net.SocketTimeoutException: timeout j.Response.StatusCode is "-1" Why does this occur? I send an extra error code to identify the problem, but the client... instead of receiving my error code. 'Return True to allow the request to proceed. Public Sub Filter(req As ServletRequest, resp As ServletResponse) As Boolean If req.ContentLength > (3 * 1024 * 1024... B4A Question Problem with httpJob StatusCode - Erel (first post)    Jan 1, 2020 Works fine here: Dim j As HttpJob j.Initialize("", Me) j.Download("https://www.superord.co.uk/api/customer/4?search=activated") Wait For (j) JobDone(j As HttpJob) Log(j.Success) Log(j.Response.StatusCode) j.Release Output: true 204... Page: 1   2   3   4   5   6   7   |