The POST body's JSON encoding is invalid.
Your code String body=" '{\"fields\":[\"title\"]}'";
should be String body="{\"fields\":[\"title\"]}";
I would suggest using a JSON library like json-simple when encoding JSON objects to avoid invalid JSON. A library will also be more flexible as your application develops.