title: Remove transfer encoding in Http Request
body: <p>I am sending one SOAP request. It uses the encoding type as <strong><code>Trasfer-encoding chunked</code></strong>. </p>
  
  <p>The request is not sent properly. I think some issue with content encoding.</p>
  
  <pre><code>Empty Request is sent. I am getting 500 error from server.
  
  "Content-Type: text/xml; charset=UTF-8[\r][\n]"
  "SOAPAction: "fir_auto_complete/fir_auto_completeListRequest"[\r][\n]"
  "User-Agent: Axis2[\r][\n]"
  "Host: localhost:9090[\r][\n]"
  "Transfer-Encoding: chunked[\r][\n]"
  </code></pre>
  
  <p>I have tried like this but does not seem to work. I am getting 500 error from server.</p>
  
  <pre><code>public Response getNumber(@Context final HttpServletRequest context, @QueryParam("name") final String name) throws UnsupportedEncodingException
      {
      return Response.ok(JSONHelper.withJSONCallback(context, JSONHelper.toJSON(name))).header("charset", "utf-8").header("Content-Encoding", "gzip")build();
      }
  </code></pre>
  
  <p>The packets of data is sent is empty. </p>
  
  <p>I think there is a issue with Transfer encoding type. </p>
  
  <p>Can some one suggest how to change encoding type and what encoding type is suggested here.</p>