Deciphering web/'REST' 'API' and 'XHR' calls can be tricky, which is one reason why internet browsers provide "Copy as cURL" functionality within their "Developer Tools" pane(s). These 'cURL' command-lines can be difficult to wrangle into an 'httr' 'GET' or 'POST' request, but you can now "straighten" these 'cURLs' either from data copied to the system clipboard or by passing in a vector of 'cURL' command-lines and getting back a list of parameter elements which can be used to form 'httr' requests. You can also make a complete/working/callable 'httr::VERB' function right from the tools provided.

Documentation

Manual: curlconverter.pdf
Vignette: Using curlconverter

Maintainer: Bob Rudis <bob at rudis.net>

Author(s): Bob Rudis*, Nick Carneiro*

Install package and any missing dependencies by running this line in your R console:

install.packages("curlconverter")

Depends R (>= 3.0.0)
Imports V8, curl, httr, purrr, clipr, stringi, formatR, magrittr, jsonlite
Suggests testthat, knitr, rmarkdown
Enhances
Linking to
Reverse
depends
Reverse
imports
Reverse
suggests
Reverse
enhances
Reverse
linking to

Package curlconverter
Materials
URL
Task Views WebTechnologies
Version 0.7.0
Published 2016-03-29
License AGPL
BugReports
SystemRequirements xclip or xsel for accessing the X11 clipboard
NeedsCompilation no
Citation
CRAN checks curlconverter check results
Package source curlconverter_0.7.0.tar.gz