public boolean removeParameter(final String paramName) throws IllegalArgumentException {
  LOG.trace("enter PostMethod.removeParameter(String)");
  if (paramName == null) {
    throw new IllegalArgumentException("Argument passed to removeParameter(String) cannot be null");
  }
  boolean removed=false;
  final Iterator iter=params.iterator();
  while (iter.hasNext()) {
    final NameValuePair pair=(NameValuePair)iter.next();
    if (paramName.equals(pair.getName())) {
      iter.remove();
      removed=true;
    }
  }
  return removed;
}

public boolean removeParameter ( final String paramName ) throws IllegalArgumentException { LOG . trace ( "enter PostMethod.removeParameter(String)" ) ; if ( paramName == null ) { throw new IllegalArgumentException ( "Argument passed to removeParameter(String) cannot be null" ) ; } boolean removed = false ; final Iterator iter = params . iterator ( ) ; while ( iter . hasNext ( ) ) { final NameValuePair pair = ( NameValuePair ) iter . next ( ) ; if ( paramName . equals ( pair . getName ( ) ) ) { iter . remove ( ) ; removed = true ; } } return removed ; }
removes all parameters with the given paramname . if there is more than one parameter with the given paramname , all of them are removed . if there is just one , it is removed . if there are none , then the request is ignored .
