1. Black Friday Sale - 50% off

    B4A Standard for $29 instead of $59!
    Buy Now
    Dismiss Notice

Android Tutorial HttpUtil and Authentification

Discussion in 'Tutorials & Examples' started by optimist, Feb 23, 2012.

  1. optimist

    optimist Member Licensed User

    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:
    Code:
    56: hc.Execute(req, task)
    with
    Code:
    56If sUser <> "" Then
    57:     hc.ExecuteCredentials(req, task, sUser, sPass)
    58Else
    59:     hc.Execute(req, task)
    60End If
    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
     
    Last edited: Feb 23, 2012
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice