Skip to contents

The browser's user-agent string and its cookies have to go on a request together: Cloudflare ties the clearance cookie to the user agent that earned it, and the cookie alone is answered with the check again.

Usage

clearance_handle(clearance = NULL, ...)

Arguments

clearance

A clearance from clearance(), or NULL for a plain handle.

...

Further options for curl::new_handle().

Value

A curl handle with followlocation set, and the clearance's useragent and cookie when one was given.

Examples

h <- clearance_handle(list(useragent = "Mozilla/5.0", cookie = "cf_clearance=x"))