UHTTP get with autentication in header
Page 1 / 1
UHTTP get with autentication in header
Hi,
perhaps the answer could be in the already available documentation, like here.
Hope it helps...
Gianni
UHTTP get with autentication in header
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 itIn 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)
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.