title: HttpPost doesn't contain setHeader(String, String)
body: <p>I'm using Apache's HttpClient 4.3.6 in Java and trying to use HttpPost.setHeader(String, string), but getting:</p>
  
  <blockquote>
    <p>The method setHeader(String, String) is undefined for the type HttpPost</p>
  </blockquote>
  
  <p>Here's my code</p>
  
  <pre><code>// Create post request
  HttpPost request = new HttpPost(GAME_ANALYTICS_URL + GAME_KEY + "/design");
  
  // Encode
  String content = gson.toJson(message);
  String hashedAuthData = DigestUtils.md2Hex((content + SECRET_KEY).getBytes());
  request.setHeader("Application", hashedAuthData);
  </code></pre>
  
  <p>I'm following a tutorial, which uses the setHeader() method. And I googled a bit but couldn't find others having the same problem, but I saw plenty of people using the setHeader() method.</p>
  
  <p>My import is:</p>
  
  <pre><code>import org.apache.http.client.methods.HttpPost;
  </code></pre>
  
  <p>So I'm fairly sure it's the correct one.</p>
  
  <p>Anyone who have any clue what could be wrong?</p>