Learn R Programming

⚠️There's a newer version (1.4.7) of this package.Take me there.

httr (version 0.4)

Tools for working with URLs and HTTP

Description

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).

Copy Link

Version

Install

install.packages('httr')

Monthly Downloads

815,781

Version

0.4

License

MIT + file LICENSE

Maintainer

Hadley Wickham

Last Published

July 28th, 2014

Functions in httr (0.4)

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

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.