auth_post: POST a resource with authenticated credentials.

Description Usage Arguments Value

View source: R/auth_request.R

Description

POST data to a URL using an HTTP POST request using authentication credentials provided in a client certificate. Authenticated access depends on the suggested openssl package. If the openssl package is not installed, then the request fails.

Usage

1
auth_post(url, encode = "multipart", body = as.list(NA), node)

Arguments

url

The URL to be accessed via authenticated POST

encode

the type of encoding to use for the POST body, defaults to 'multipart'

body

a list of data to be included in the body of the POST request

node

The D1Node object that the request will be made to.

Value

the HTTP response from the request


dataone documentation built on July 2, 2018, 1:02 a.m.