HTTP Post request

@Paolo_Manna Thanks, I have set all that up but now I keep getting a 401 unauthorized. I am using the following call

  const auth = await http.post({
    url: "https://xxxxxxxxxxxxxxxxxx.xxxxxxxxx.com",
    Authorization: "Basic " + BSON.Binary.fromText(user).toBase64(),
    encodeBodyAsJSON: true
  })

where user is a string containing : eg fred:password

Any pointers as to what i might be doing wrong would be greatly appreciated.

1 Like