Convert HAR to cURL

from_har(
  har,
  filter = c("All", "Doc", "JS", "CSS", "XHR", "Img", "XHR", "Media", "Font", "WS",
    "Manifest", "Other")
)

Arguments

har

a JSON string, URL or file

filter

a filter working on content-type given by the HAR entry response

Value

A character vector of cURL calls

Examples

if (FALSE) {
   hardir <- system.file("extdata", package = "curlconverter")
   harfile <- file.path(hardir, "har1.har")
   harfile %>% from_har
}