mc73 Well-Known Member Licensed User Longtime User Jan 30, 2018 #1 The old disable (okHttp2) doesn't seem to work anymore. Found this: B4X: OkHttpClient.Builder builder = new OkHttpClient.Builder(); builder.followRedirects(false); OkHttpClient httpClient = builder.build(); How should I set it in my code using javaObject?
The old disable (okHttp2) doesn't seem to work anymore. Found this: B4X: OkHttpClient.Builder builder = new OkHttpClient.Builder(); builder.followRedirects(false); OkHttpClient httpClient = builder.build(); How should I set it in my code using javaObject?
DonManfred Expert Licensed User Longtime User Jan 30, 2018 #2 have you tried to set this in the service module? B4X: hc.Initialize("hc") hc.SetHttpParameter("http.protocol.handle-redirects", False) Upvote 0
have you tried to set this in the service module? B4X: hc.Initialize("hc") hc.SetHttpParameter("http.protocol.handle-redirects", False)
mc73 Well-Known Member Licensed User Longtime User Jan 30, 2018 #3 DonManfred said: have you tried to set this in the service module? B4X: hc.Initialize("hc") hc.SetHttpParameter("http.protocol.handle-redirects", False) Click to expand... Sure, and it doesn't work any more: B4X: Error description: Unknown member: sethttpparameter Error occurred on line: 29 hc.SetHttpParameter("http.protocol.handle-redirects", False) Upvote 0
DonManfred said: have you tried to set this in the service module? B4X: hc.Initialize("hc") hc.SetHttpParameter("http.protocol.handle-redirects", False) Click to expand... Sure, and it doesn't work any more: B4X: Error description: Unknown member: sethttpparameter Error occurred on line: 29 hc.SetHttpParameter("http.protocol.handle-redirects", False)
Erel B4X founder Staff member Licensed User Longtime User Jan 30, 2018 #4 See this post: https://www.b4x.com/android/forum/threads/mysql-problem.80538/#post-510207 Change "retryOnConnectionFailure" to "followRedirects" Upvote 0
See this post: https://www.b4x.com/android/forum/threads/mysql-problem.80538/#post-510207 Change "retryOnConnectionFailure" to "followRedirects"