I'm creating a REST Client in Java with RestTemplate from Spring Framework.

Everything is fine until i have to do a post with **postForLocation**.

The webservice i'm having access return a json with informations about the POST ACTION.

In PHP it's fine but i really don't understand how to do in Java with RestTemplate.

```
public String doLogin()
    {
        Map<String, String> args = new HashMap<String, String>();

        args.put("email", AUTH_USER);
        args.put("token", AUTH_PASS);

        String result = restTemplate.postForLocation(API_URL + "account/authenticate/?email={email}&token={token}", String.class, args);

        return result;
    }

```

This returns NULL.

With same code but using **getForObject** (and of course, changing the URL to something right) I have a full response, i.e. this works: 

`String result = restTemplate.getForObject(url, String.class);`

So... how get the RESPONSE from a **postForLocation**?

Obs.: Sorry if this question is dumb. I'm beginner in Java