[progress Communities] [progress Openedge Abl] Forum Post: Re: Basic Authentication With...

  • Thread starter Thread starter kanav20011997
  • Start date Start date
Status
Not open for further replies.
K

kanav20011997

Guest
Thanks for your help. I have now made a public rabbitMQ instance available for troubleshooting. The code that i am using now: var url =" ec2-54-172-14-24.compute-1.amazonaws.com:15672/.../publish"; var data = {"routing_key":"queue_test", "payload":"message test ", "payload_encoding":"string"}; var method = "POST"; var contentType = "application/json; charset=UTF-8"; var username = "guest"; var password = "guest"; var encodedSiteAuth = "Z3Vlc3Q6Z3Vlc3Q="; var headers ={ "Authorization" : "Basic " + encodedSiteAuth }; var headers =""; var result = rbv_api.sendJSONRequest(url,data,method,contentType,username,password,headers); 015 rbv_api.println(result); However, I am still getting the following error: HTTP Error 400: HTTP call failed: Bad Request (line #15) What do you think?

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