4

The error message

error : use 'application/json' Content-Type and raw POST with json data

is being appeared from cyclos application inside plivo console which a third API that need to be integrated in cyclos through

Gateway URL: https://api.plivo.com/v1/Account/auth-id/Message/

HTTP username:xxx

HTTP password: **** 

HTTP headers

{
      'content-type': 'application/json',
}

HTTP request type: POST

HTTP request POST body

{
    "src":"+xxxx",
    "dst":"+xxx",
    "text":"some test"
}
Chintan Kotadiya
  • 1,335
  • 1
  • 11
  • 19
Muhammad Muazzam
  • 2,810
  • 6
  • 33
  • 62

1 Answers1

1

Can you try sending header as 'Content-Type' instead of 'content-type'.

There are some implementations where field-names are case-sensitive (Like an age-old bug in PHP!).

Muhammad Muazzam
  • 2,810
  • 6
  • 33
  • 62
Mohamed Anees A
  • 4,119
  • 1
  • 22
  • 35