}
  private void setCommand(String s) throws Exception{    if(s.equals("GET"))      command=GET;    else if(s.equals("HEAD"))      command=HEAD;    else      throw new Exception("Unsupported command: "+s);  }