Hello,
i was in an dilemma, because i needed http authentification, but wanted to use the easy HttpUtils module instead more complicated HttpClient.
But its easy to extend HttpUtils. Pass credentials to service and replace one line in file HttpUtilsService:
with
Its so easy and works like a charm Maybe this is from common interest and an topic for the maintainer of HttpUtils?
Greetings from Germany
i was in an dilemma, because i needed http authentification, but wanted to use the easy HttpUtils module instead more complicated HttpClient.
But its easy to extend HttpUtils. Pass credentials to service and replace one line in file HttpUtilsService:
B4X:
56: hc.Execute(req, task)
B4X:
56: If sUser <> "" Then
57: hc.ExecuteCredentials(req, task, sUser, sPass)
58: Else
59: hc.Execute(req, task)
60: End If
Greetings from Germany
Last edited: