urltools (version 1.7.3)

strip_credentials: Get or remove user authentication credentials

Description

authentication credentials appear before the domain name and look like user:password. Sometimes you want the removed, or retrieved; strip_credentials and get_credentials do precisely that

Usage

strip_credentials(urls)

get_credentials(urls)

Arguments

urls

a URL, or vector of URLs

Examples

Run this code
# NOT RUN {
# Remove credentials
strip_credentials("http://foo:bar@97.77.104.22:3128")

# Get credentials
get_credentials("http://foo:bar@97.77.104.22:3128")
# }

Run the code above in your browser using DataCamp Workspace