Authentication Livecode-httpHeader

Authentication Livecode-httpHeader,authentication,post,request,http-headers,livecode,Authentication,Post,Request,Http Headers,Livecode,有人能告诉我发送以下httpHeaders的正确方法吗。我得到“权限被拒绝”作为服务器的响应,但我的代码看起来都不错 put "ABCD" into clientId put "1234" into clientSecret put "Authorization: Basic" && base64Encode("clientId:clientSecret") && "Content-Type: application/json"&& "Cache

有人能告诉我发送以下httpHeaders的正确方法吗。我得到“权限被拒绝”作为服务器的响应,但我的代码看起来都不错

put "ABCD" into clientId
put "1234" into clientSecret

put "Authorization: Basic" && base64Encode("clientId:clientSecret") && "Content-Type: application/json"&& "Cache-Control: no-cache"  into tHeader 
set the httpHeaders to tHeader

 post receiveMomoRequest to url "https://server/v1/merchantaccount/merchants/HMXXXXXX/receive"

每个标题字段应位于单独的行上,因此您应在每个键值之间添加一个返回:

put "ABCD" into clientId
put "1234" into clientSecret

put "Authorization: Basic" && base64Encode("clientId:clientSecret") & return & "Content-Type: application/json" & return & "Cache-Control: no-cache"  into tHeader 
set the httpHeaders to tHeader

post receiveMomoRequest to url    "https://server/v1/merchantaccount/merchants/HMXXXXXX/receive"