if (method.equals("GET"))
if (method.equals("GET") || method.equals("HEAD") || method.equals("POST"))
  public void setRequestMethod (String method) throws ProtocolException  {    method = method.toUpperCase();        if (method.equals("GET"))      super.setRequestMethod (method);    else      throw new ProtocolException ("Unsupported or unknown request method " +                                   method);  }