1
0
-1

UHTTP  get with autentication in header


    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi Elidio

      Is it for providing your web services or consume some?

      If you plan to publish web services and use an alternate authentication than web realm, for example JWT, you can handle it yourself by parsing the Authentication header :

      lvToken = $replace($item("authorization", $webinfo("HTTPREQUESTHEADERS")), 1, "Bearer ", "")
      ; use a service to check the presence of a token and analyze it

      In the other way, to consume a web service, you can inject the header in the request with UHTTP :

      putitem/id lvHeaders, "authorization", "Bearer %%lvToken"
      activate "UHTTP".send(lvUri, "GET", "", "", lvHeaders, lvContent, lvResponse)
        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi,

        perhaps the answer could be in the already available documentation, like here.

        Hope it helps...

        Gianni

          CommentAdd your comment...