Hi All
How can I do basic authentification
I retrieve a Uri
oHttp:= TIpClientHttp():new("http://localhost:8080/accountright" )
if oHttp:open()
cItems := oHttp:ReadAll()
else
MsgInfo( "Connection error:" + oHttp:lastErrorMessage())
endif
hb_jsondecode( cItems, @hJson )
for i := 1 to len(hJson)
cId := hJson[i,"Name"]
if substr(cId,1,3) == 'Kas'
cUri := hJson[i,"Uri"]
endif
next
cBasic := hb_base64Encode('user:pass') // username password
I need to send cBasic with the cUri but dont how how.
Regards
Colin
How can I do basic authentification
I retrieve a Uri
oHttp:= TIpClientHttp():new("http://localhost:8080/accountright" )
if oHttp:open()
cItems := oHttp:ReadAll()
else
MsgInfo( "Connection error:" + oHttp:lastErrorMessage())
endif
hb_jsondecode( cItems, @hJson )
for i := 1 to len(hJson)
cId := hJson[i,"Name"]
if substr(cId,1,3) == 'Kas'
cUri := hJson[i,"Uri"]
endif
next
cBasic := hb_base64Encode('user:pass') // username password
I need to send cBasic with the cUri but dont how how.
Regards
Colin