httr v0.4


Monthly downloads



by Hadley Wickham

Tools for working with URLs and HTTP

Provides useful tools for working with HTTP. The API is based around http verbs (GET(), POST(), etc) with pluggable components to control the request (authenticate(), add_headers() and so on).

Functions in httr

Name Description
modify_url Modify a url.
config Set curl options.
GET GET a url.
DELETE Send a DELETE request.
url_success Check for an http success status.
content Extract content from a request.
httr httr makes http easy.
oauth_listener Create a webserver to listen for OAuth callback.
new_token Generate and initialise new token.
verbose Give verbose output.
handle Create a handle tied to a particular host.
with_config Execute code with configuration set.
handle_pool Maintain a pool of handles.
http_status Give information on the status of a request.
use_proxy Use a proxy to connect to the internet.
content_type Set content-type and accept headers.
init_oauth2.0 Retrieve OAuth 2.0 access token.
init_oauth1.0 Retrieve OAuth 1.0 access token.
has_content Does the request have content associated with it?
POST POST file to a server.
hmac_sha1 HMAC SHA1
HEAD Get url HEADers.
oauth_endpoint Describe an OAuth endpoint.
oauth_app Create an OAuth application.
insensitive Create a vector with case insensitive name matching.
headers Extract the headers from a response
oauth2.0_token Generate an oauth2.0 token.
Token-class OAuth token objects.
user_agent Set user agent.
cookies Access cookies in a response.
status_code Extract status code from response.
oauth_endpoints Popular oauth endpoints.
parse_media Parse a media type.
oauth_callback The oauth callback url.
parse_url Parse and build urls according to RFC1808.
PATCH Send PATCH request to a server.
BROWSE Open specified url in browser.
url_ok Check for an http OK status.
http_error Take action on http error.
http_condition Generate a classed http condition.
oauth1.0_token Generate an oauth1.0 token.
PUT Send PUT request to server.
guess_media Guess the media type of a path from its extension.
oauth_signature Generate oauth signature.
set_cookies Set cookies.
httr_options List available options.
progress Add a progress bar.
timeout Set maximum request time.
sign_oauth Sign an OAuth request
set_config Set (and reset) global httr configuration.
upload_file Upload a file with POST or PUT.
response The response object.
authenticate Use http authentication.
add_headers Add additional headers to a request.
oauth_exchanger Walk the user through the OAuth2 dance without a local webserver.
No Results!

Last month downloads


Type Package
VignetteBuilder knitr
License MIT + file LICENSE
Packaged 2014-07-28 14:47:33 UTC; hadley
NeedsCompilation no
Repository CRAN
Date/Publication 2014-07-28 18:14:27

Include our badge in your README