Uniface on GitHub
Product (releases and patches)
Reported Issues (old)
Fixes and Updates
UHTTP get with autentication in header
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)
perhaps the answer could be in the already available documentation, like here.
Hope it helps...
© 2020 Uniface Privacy & Cookies | Privacy Statement | Legal