creds: Get or remove user authentication credentials

Description Usage Arguments Examples

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

1
2
3

Arguments

urls

a URL, or vector of URLs

Examples

1
2
3
4
5
# Remove credentials
strip_credentials("http://foo:bar@97.77.104.22:3128")

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

Example output

[1] "http://97.77.104.22:3128"
  username authentication
1      foo            bar

urltools documentation built on May 1, 2019, 6:49 p.m.