B4A Question disable automatic redirects setFollowRedirects(false) - drgottjr (first post) Oct 07, 2023 even if you disable followsRedirects, you're going to have to recompile
all your apps (since they all need HU2_PUBLIC). there is no inserting
a disable feature into completed applications.
you have 3 options:
1) do the HU2_PUBLIC build configuration, recompile the apps that need it, run the
snipp B4A Question [SOLVED] httpjob, cookie and redirect problem - sinner181 (first post) May 31, 2020 to replace "retryOnConnectionFailure" with "followRedirects", but exactly.....where is this SUB INITIALIZE to replace? which file?
I'm really confused....sorry.
18 years of delphi programming and it looks like I'm taking the computer for the first time ????
only a suggestion, if possible, in your B4A Question [SOLVED] HttpUtils2 with okHttp3 Disable redirect - Erel (first post) Jan 30, 2018 (1 reaction) See this post: https://www.b4x.-problem.80538/#post-510207
Change "retryOnConnectionFailure" to "followRedirects" B4A Code Snippet Disable automatic redirections with OkHttpUtils2 - Erel Jun 01, 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.Run B4J Library Synchronous HTTP Request Library - tchart Nov 14, 2021 (5 reactions) Code Examples;
Generic GET - Return Status Code
Dim req As HttpRequestWrapper
req.Initialize(URL,req.METHOD_GET)
req.trustAllCerts
req.trustAllHosts
req.followRedirects(True)
req.connectTimeout(1000)
req.readTimeout(1000)
Return req.code
Generic Get - Return Body
Dim ParameterMap As Map ' Th B4A Question [SOLVED] Identical http request - different responses (B4A - B4J) - mc73 (first post) May 15, 2020 (1 reaction) Sub Process_Globals
Type responseLocationAndCookie(location As String,cookie As String)
End Sub
Sub Globals
Public hc As OkHttpClient
Private strUtils As StringUtils
Private tempFolder As String
Private myCookiesMap As Map
End Sub
Sub Activity_Create(FirstTime As Boolean)
t B4J Question Http client - Too many follow-up requests: 21 - Hamied Abou Hulaikah (first post) Oct 07, 2022 (1 reaction) It is more like a server side auhentication problem enter you in redirect loop.
Postman success, so check all headers are set and sent using okhttp properly. B4A Question Follow Redirect not working - LucaB Oct 07, 2021 I try this method but it doesn't work
https://www.b4x.-automatic-redirections-with-okhttputils2.118469/
I get this error B4J Question ABM, APACHE2, SSL, UBUNTU! -- I Did It My Way - mmieher Apr 25, 2023 (4 reactions) I do not care where your copyneeds.must is.
/var/www/pearl/.htaccess
root@pearlnecklacemedia:/var/www/pearl# cat .htaccess
Redirect permanent / https://www.pearlnecklacemedia.com:51069
Rename and .htaccess in /var/www to .htaccess-hate so that it is ignored.
/etc/apache2/sites-available/000-defa B4A Question Connect ESP8266/ESP32 to Android Emulator - max123 (first post) May 02, 2023 (1 reaction) Start another command Prompt and type the follow command (you need telnet enabled, on Win11 I enabled it in the custom settings), note that you can probably do it in other ways, just need to connect to emulator:
telnet localhost 5554
After that You will be asked to write the auth login, as the promp Page: 1 2 3 4 5 6 7 Powered by ColBERT |