title: how to send post with FormParams using Angular2
body: <p>client:</p>
  
  <p>I do post in angular2 like this:</p>
  
  <pre><code>doSelectMessagesAttributesUrl2(pushRequest : PushRequest) {
      console.info("sending post request");
  
      let headers = new Headers({
          'Content-Type': 'application/json'});
  
      return this.http
          .post(this.selectMessagesAttributesUrl, JSON.stringify(pushRequest), {headers: headers})
          .map(res =&gt; res.json().data)
          .subscribe(
              data =&gt; { },
              err =&gt; {  }
          );
  }
  </code></pre>
  
  <p>How should i change the request to call the server with FormParam?</p>
  
  <p>server:</p>
  
  <pre><code> @Path("/FeatureGetQueueData")
      @POST
      @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
      @Produces(MediaType.APPLICATION_JSON)
      public String runFeatureGetQueueData(@FormParam("queue") MyString paramQueue) throws Exception {
  
          if (!SupporToolAlert.validateEnvironment(SupporToolConfig.ROW)) {
              return SupporToolAlert.invalidEnvironment();
          }
  
          String queue = PushQueueConfig.conf().QUEUE.get(paramQueue.value);
  </code></pre>