These functions provide a constructor
  and accessor methods 
  for the (currently S3) class CURLOptions.
  This class is a way to group and manage options settings
  for CURL.
  These functions manage a named list of options
  where the names are elements of a fixed.
  Not all elements need be set, but
  these functions take care of expanding names
  to match the fixed set, while allowing callers
  to use abbreviated/partial names.
  Names that do not match (via pmatch)
  will cause an error.
The set of possible names is given by
  names(getCurlOptionsConstants())
   or more directly with listCurlOptions().
mapCurlOptNames handles the partial matching and
  expansion of the names of the options for all the functions
  that handle CURL options.
  Currently this uses pmatch to
  perform the matching and so rejects words
  that are ambiguous, i.e. have multiple matches
  within the set of permissible option names.
  As a result, "head" will match both
  "header" and "headerfunction".
  We may change this behavior in the future, but
  we encourage using the full names for readability of code if nothing
  else.