title: Always get null response in ResponseEntity when using RestTemplate.postForEntity
body: <p>I' m trying to send JSON request using Jackson library from my Android app to the  web server but response is always null. I tested it just with the HttpRequest API and all works fine  - I've got a response. But now I try to use Spring RestTemplate and I can't receive a result. Here is my code:</p>
  
  <pre><code>protected Void doInBackground(String... params) {
      LinkedHashMap&lt;String, Object&gt; _map = new LinkedHashMap&lt;String, Object&gt;();
      _map.put("login", "Fred");
      _map.put("password", "pass");
      ObjectMapper _mapper = new ObjectMapper ();
      StringWriter _writer = new StringWriter();
      try {
          _mapper.writeValue(_writer,_map);
      } catch (JsonGenerationException e) {
          e.printStackTrace();
      } catch (JsonMappingException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  
      String _baseURL = "https...."//Address of the server;
      HttpHeaders requestHeaders = new HttpHeaders();
      requestHeaders.setContentType(MediaType.APPLICATION_JSON); 
       HttpEntity&lt;String&gt; _entity = new HttpEntity&lt;String&gt;(_writer.toString(),requestHeaders);
      RestTemplate templ = new RestTemplate();
  
      templ.setRequestFactory(new HttpComponentsClientHttpRequestFactory());
      templ.getMessageConverters().add(new StringHttpMessageConverter());
      ResponseEntity&lt;String&gt; _response = templ.postForEntity(_baseURL, _entity,String.class);
      String _Test =  _response.getBody();
  </code></pre>
  
  <p>So I always have null in _Test.
  I suspect this is because of https protocol. Can RestTemplate work with https?
  <p> So what's wrong with that code. How to fix this? 
  <p> Thanks in advance. I really need a help!</p>