public void addRequestHeader(String key,String value){
  if (userHeaders == null) {
    userHeaders=new Hashtable();
  }
  if (key.equalsIgnoreCase("content-type")) {
    setContentType(value);
  }
 else {
    userHeaders.put(key,value);
  }
}

public void addRequestHeader ( String key , String value ) { if ( userHeaders == null ) { userHeaders = new Hashtable ( ) ; } if ( key . equalsIgnoreCase ( "content-type" ) ) { setContentType ( value ) ; } else { userHeaders . put ( key , value ) ; } }
adds the given header to the request that will be sent
