public void addRequestProperty(String field,String newValue){
  checkNotConnected();
  if (field == null) {
    throw new NullPointerException("field == null");
  }
}

public void addRequestProperty ( String field , String newValue ) { checkNotConnected ( ) ; if ( field == null ) { throw new NullPointerException ( "field == null" ) ; } }
adds the given property to the request header . existing properties with the same name will not be overwritten by this method .
