I'm trying to send the pdf document through RESTful API service using PowerBuilder 2017R3 (Windows 10 OS) but i could not able to add the body parameters (metadata - in the form of JSON data and content - pdf document in the form of binary object) in these httpobject.
Do we've any options in latest PB 2017 R3 to add these body parameters (not the headers) or any other alternate options? (attaching below the screenshot from Postman tool - it was working with these body)
httpClient.SetRequestHeader("Authorization", "Basic xxxxx==");. My question is how to convert the user id and password and include those ANSI Characters into basic authorization headers.
ls_credentials = "user_id:pw"
lblb_credentials = Blob(ls_credentials, EncodingUTF8!)
ls_Base64credentials = lnv_CoderObject.Base64Encode(lblb_credentials)
SetRequestHeader("Authorization", "Basic "+ls_Base64credentials)
Thanks,
Dinesh Babu