title: How to change Content-Type of GET-Request via firefox addon RESTClient
body: <p>I want to send GET-Requests which shall be answered by my REST-API.
  My java programm currently supports <code>text/plain</code>, <code>text/html</code>, <code>text/xml</code> and <code>application/json</code> using the JAX-RS Reference Implementation Jersey. </p>
  
  <p>To test the different media types I'm using the firefox addon <code>RESTClient</code>. To change the media type I shall adjust the header with <code>name=Content-Type</code> and e.g. <code>value=text/xml</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/YE5Lf.png" alt="enter image description here"></p>
  
  <p>But the RESTClient always returns <code>text/html</code> no matter which <code>Content-Type</code> I choose. The only way right now to modify the returned result type is, to uncomment the html-section in my code. Then <code>text/plain</code> will be the returned media type, but still the <code>Content-Type</code> argument of the RESTClient stays ignored.</p>
  
  <p>I'm using the most resent version of RESTClient, which is right now 2.0.3. Can you please help me?</p>
  
  <p>Here is my Java-Code:</p>
  
  <pre><code>import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  import javax.ws.rs.core.MediaType;
  
  //Sets the path to base URL + /hello
  @Path("/hello")
  public class restProvider {
  
    // This method is called if TEXT_PLAIN is request
    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String sayPlainTextHello() {
      return "Hello little World";
    }
  
    // This method is called if XML is request
    @GET
    @Produces(MediaType.TEXT_XML)
    public String sayXMLHello() {
      return "&lt;?xml version=\"1.0\"?&gt;" + "&lt;hello&gt; Hello little World" + "&lt;/hello&gt;";
    }
  
    // This method is called if HTML is request
    // Uncommenting the following 6 lines will result in returning text/plain
    @GET
    @Produces(MediaType.TEXT_HTML)
    public String sayHtmlHello() {
      return "&lt;html&gt; " + "&lt;title&gt;" + "Hello World" + "&lt;/title&gt;"
          + "&lt;body&gt;&lt;h1&gt;" + "Hello little World" + "&lt;/h1&gt;&lt;/body&gt;" + "&lt;/html&gt; ";
    }
  
    // This method is called if JSON is requested
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public String getJson(){
        Gson gsonObject = new Gson();
        return gsonObject.toJson(helloClass);
    }
  
  } 
  </code></pre>