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:

status | The status code of the final request.

Examples

    curlGetHeaders("http://www.google.com")
    curlGetHeaders("ftp://mirrors.kernel.org/gnu/")

Package base version 6.1.5-18
Package Index