Forum Discussion

2 Replies

  • Hi,

    Is the end point your using expects JSON content?

    Since your doing a POST request with application/json as the media type then some JSON content is expected to be sent, example from Google Places POST request:

    {
    "location": {
    "lat": -33.8669710,
    "lng": 151.1958750
    },
    "accuracy": 50,
    "name": "Google Shoes!",
    "types": ["shoe_store"],
    "language": "en-AU"
    }
  • gopals05's avatar
    gopals05
    New Contributor
    Hi
    Thanks for your suggestion, In the Conetent type I have to include application/json, charset=utf-8 and it worked !.

    Thanks