-1

I have the following code to make a json request, but it fails:

Response response = POST("/b/profile/","application/json",body);

I also tried this one:

Response response = POST("/b/profile/","application/x-www-form-urlencoded",body);

but the response again had the content-type text/html. Any ideas?

Brad Mace
  • 27,194
  • 17
  • 102
  • 148
cmhho
  • 43
  • 5

1 Answers1

0

Try

Response response = POST("/b/profile/","text/javascript",body);

See here for more details

Codemwnci
  • 54,176
  • 10
  • 96
  • 129