Learn R Programming

curlconverter (version 1.0.0)

from_request: Convert HAR request to cURL

Description

Convert HAR request to cURL

Usage

from_request(request)

Arguments

request

a parsed HAR entry request as a list

Value

a cURL string

Examples

Run this code
# NOT RUN {
   hardir <- system.file("extdata", package = "curlconverter")
   harfile <- file.path(hardir, "har1.har")
   entry <-
     fromJSON(harfile, simplifyVector = FALSE)[["log"]][["entries"]][[1]]
   req <- entry[["request"]]
   req %>% from_request
# }

Run the code above in your browser using DataLab