B4A Code Snippet Disable automatic redirections with OkHttpUtils2 - Erel    Jun 1, 2020   (1 reaction) Step 1: Add to build configuration (Ctrl + B): HU2_PUBLIC
Step 2: Add to starter service:
Sub Service_Create
Dim jo As JavaObject = HttpUtils2Service.hc
Dim builder As JavaObject = jo.RunMethod("sharedInit", Array("hc"))
builder.RunMethod("followRedirects", Array(False))
builder.RunMethod("followSslRedirects", Array(False))
jo.SetField... B4J Library Synchronous HTTP Request Library - tchart    Nov 14, 2021   (5 reactions)
req.trustAllHosts
req.followRedirects(True)
req.connectTimeout(1000)
req.readTimeout(1000)
Return...
req.Initialize(URL,req.METHOD_GET)
req.trustAllCerts
req.trustAllHosts
req.followRedirects....trustAllHosts
req.followRedirects(True)
If ParameterMap.Size > 0 Then req.form(ParameterMap)
Dim... B4A Question [SOLVED] HttpUtils2 with okHttp3 Disable redirect - mc73    Jan 30, 2018 The old disable (okHttp2) doesn't seem to work anymore.
Found this:
OkHttpClient.Builder builder = new OkHttpClient.Builder();
builder.followRedirects(false);
OkHttpClient httpClient = builder.build();
How should I set it in my code using javaObject?... Spanish PostMultipart y https - TILogistic (first post)    Mar 26, 2024 Para conocimiento general: https://www.b4x.com/android/forum/threads/disable-automatic-redirections-with-okhttputils2.118469/#content Busqueda para mas informacion https://www.b4x.com/android/forum/pages/results/?query=followRedirects... B4A Question Use custom SSL in httpjob - is it possible... - drgottjr (first post)    Jun 10, 2025   (1 reaction) ("sharedInit", Array("hc")) ' builder.RunMethod("followRedirects", Array(False)) ' builder.RunMethod("followSslRedirects", Array(False)) Dim... B4A Question [SOLVED] httpjob, cookie and redirect problem - Erel (first post)    Jun 1, 2020 Tip: you should never have a JobDone sub.
only a suggestion, if possible, in your next update insert a call like Job1.followredirect = (boolean),
This is a very rare situation where you want to disable redirects.
Solution: https://www.b4x.com/android/forum/threads/disable-automatic-redirections-with-okhttputils2.118469/... B4A Question Okhttputils2 and redirects - wimpie3 (first post)    Jun 24, 2019 The instructions are to replace the initialize Sub in httputils2service with this code (source downloaded on https://www.b4x.com/android/forum/threads/b4x-okhttputils2-ihttputils2-httputils2-source-code.82632/): Sub Initialize If hc.IsInitialized = False Then TempFolder = File.DirTemp Dim jo As JavaObject = hc Dim builder As JavaObject = jo.RunMethod("sharedInit", Array("hc")) builder.RunMethod("followRedirects", Array(False)) jo... Games [XUI2D] Mouse following a path - Erel    Nov 1, 2018   (8 reactions) https://www.b4x.com/android/forum/attachments/test-gif.73821/ This example shows two things: 1. How to use a MotorJoint to make a body follow a path of points. The difficult part was to make the body turn through the shortest direction. A useful FindAngleToTarget sub is included in the example. 2. How to use the new async drawing features added in BitmapCreator v4.5. These features are very important as they allow us to make drawings directly to X2.MainBC. X2.MainBC is the BitmapCreator... B4J Code Snippet Redirect the output to a file - Erel    Mar 28, 2016   (19 reactions)   tags: Redirect, File, Log, B4J Snippet Name: RedirectOutput Description: This sub will redirect the program output to a file. Sub RedirectOutput (Dir As String, FileName As String) #if RELEASE Dim out As OutputStream = File.OpenOutput(Dir, FileName, False) 'Set to True to append the logs Dim ps As JavaObject ps.InitializeNewInstance("java.io.PrintStream", Array(out, True, "utf8")) Dim jo..., Array(ps)) jo.RunMethod("setErr", Array(ps)) #end if End Sub Usage: RedirectOutput... B4A Question disable automatic redirects setFollowRedirects(false) - gglaz (first post)    Oct 13, 2023 Thank you very much for the good and detailed help :)... Page: 1   2   3   4   5   6   |