parse_url

0th

Percentile

Parse and build urls according to RFC1808.

See http://tools.ietf.org/html/rfc1808.html for details of parsing algorithm.

Usage
parse_url(url)

build_url(url)

Arguments
url
a character vector (of length 1) to parse into components, or for build_url a url to turn back into a string.
Value

  • a list containing:
    • scheme
    • hostname
    • port
    • path
    • params
    • fragment
    • query, a list
    • username
    • password

Aliases
  • build_url
  • parse_url
Examples
parse_url("http://google.com/")
parse_url("http://google.com:80/")
parse_url("http://google.com:80/?a=1&b=2")

build_url(parse_url("http://google.com/"))
Documentation reproduced from package httr, version 0.6.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.