The aim of httr is to provide a wrapper for the curl package, customised to the demands of modern web APIs.
Automatic connection sharing across requests to the same website (by default, curl handles are managed automatically), cookies are maintained across requests, and a up-to-date root-level SSL certificate store is used.
Requests return a standard reponse object that captures the http status line, headers and body, along with other useful information.
Support for OAuth 1.0 and 2.0 with
oauth2.0_token(). The demo directory has eight OAuth demos: four for 1.0 (twitter, vimeo, withings and yahoo) and four for 2.0 (facebook, github, google, linkedin). OAuth credentials are automatically cached within a project.
To get the current released version from CRAN:
To get the current development version from github:
# install.packages("devtools") devtools::install_github("r-lib/httr")
Please note that the httr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.