Resolved Regarding Rest API
- How-to
- SHAMEEM KAKKAD
- PowerBuilder
- Monday, 18 September 2023 12:16 PM UTC
HI,
I am Getting correct response from Post man. But from my PB Script not getting anything.. Below my script
link_ = 'http://000.00.00.00:2739/einvoice/web_updatelicensecommand?shaapiuser='+apiuser
HttpClient shahttpclient
shahttpclient = Create HttpClient
jsoncontent_ = 'shacommand='+command_
ls_Basic = enc.base64encode( Blob(authuser + ":" + authpwd , EncodingUTF8!))
shahttpclient.SetRequestHeader( "Authorization", "Basic " + ls_Basic)
shahttpclient.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
res_ = shahttpclient.SendRequest('PUT', link_,jsoncontent_)
What is the mistake with me ?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.