[progress Communities] [progress Openedge Abl] Forum Post: Problem With...

  • Thread starter Thread starter Deshani De Soyza
  • Start date Start date
Status
Not open for further replies.
D

Deshani De Soyza

Guest
Hi, Can anybody explain how to send HTTP POST request properly within a rollbase object script trigger. When I try to send POST request it didn't work for me. Here is my code --------------------------------------------------------------- var url = ; var headers = {"Content-Type":"application/x-www-form-urlencoded", "Authorization":"Basic " }; var params = {"grant_type":"refresh_token", "refresh_token": , "scope":"PRODUCTION"}; var resp = rbv_api.sendHttpPost(url, params, headers); rbv_api.printArr(resp); --------------------------------------------------------------- When I debug this code I got this error. - "HTTP Error 400: HTTP call failed: Bad Request" When I remove the content-type or change content type it gives this error. - "HTTP Error 415: HTTP call failed: Unsupported Media Type"

Continue reading...
 
Status
Not open for further replies.
Back
Top