title: Very peculiar :HTTP Status 405 - Method Not Allowed
body: <p><strong>[using Apache Tomcat/7.0.27]</strong></p>
  <p>It seems  I only get this error</p>
  <ul>
  <li>(<strong>HTTP Status 405 - Method Not Allowed</strong>)</li>
  </ul>
  <p>when I try to make a REST request directly from the browser.</p>
  <p>E.g by pasting this in the address bar :</p>
  <pre><code>http://localhost:8080/restExample/rest/catalog/video/14951/hello
  </code></pre>
  <p>When I run my test client  Main.java <strong>everything works fine.</strong></p>
  <p>Any ideas as to why it wont let me execute a REST through the browser?</p>
  <p>Client Side:</p>
  <pre><code>public class Main{
      public static void main(String [] args){
         ClientConfig config = new DefaultClientConfig();
         Client client = Client.create(config);   
         WebResource service = client.resource(getBaseURI(_package));
         runPutRequest(service,&quot;video/128/This is the content with the new description&quot;);
      }
  }
  
  ...
  private static void runPutRequest(WebResource service,String path){
          String response = service.path(&quot;rest/catalog/&quot;+path).accept(MediaType.APPLICATION_XML).put(String.class);
          System.out.println(&quot;Post Response :&quot;+response);
      }
  </code></pre>
  <p>Server side:</p>
  <pre><code>@PUT
  @Path(&quot;/video/{video-id}/{short-descr}&quot;)
  @Consumes(MediaType.TEXT_PLAIN)
  @Produces(MediaType.APPLICATION_XML)
  public Video updateVideo(@PathParam(&quot;video-id&quot;) int contentid,
                           @PathParam(&quot;short-descr&quot;) String descr)
  {       
      //Video video = searchByContentId(contentid);
      Video video = videoMap.get(contentid);
      video.setDescription(descr);
  
      videoMap.put(contentid,video);
      
      if( videoMap.get(contentid) != null){
          return videoMap.get(contentid);
      }else{
           throw new UnsupportedOperationException(&quot;NO object found&quot;);
      }
  }
  </code></pre>