curlGetHeaders
Get HTTP or FTP Headers Using cURL

Description

Accesses a URL and returns the response header information.

Usage

curlGetHeaders(url, redirect = TRUE, verify = TRUE)

Arguments

url a character string. Specifies the URL to request and from which to return the header information.
redirect a logical flag. If TRUE (the default), server-provided redirections are followed. If FALSE, redirections are followed.
verify a logical flag. If TRUE (the default), SSL connections are verified that the server certificate is valid and refers to the same server as is specified in url.
Value
returns a character vector that contains header information from requesting url, with one header line per element. Multiple requests (that is, from a redirect) are separated by "\r\n". The character vector has the following attributes set:
statusThe status code of the final request.
Examples
curlGetHeaders("http://www.google.com")
curlGetHeaders("ftp://mirrors.kernel.org/gnu/")
Package base version 6.0.0-69
Package Index