curlconverter: Tools to Transform 'cURL' Command-Line Calls to 'httr' Requests

Share:

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.

Author
Bob Rudis [aut, cre], Nick Carneiro [ctb]
Date of publication
2016-03-29 20:04:36
Maintainer
Bob Rudis <bob@rudis.net>
License
AGPL
Version
0.7.0

View on CRAN

Man pages

curlconverter
Create 'httr' requests from _"Copy as cURL"_ command-line...
make_req
Turn parsed cURL command lines into 'httr' request functions
parse_query
Split a query string into component parts
pipe
Pipe operator
straighten
Processes cURL command-line requests

Files in this package

curlconverter
curlconverter/inst
curlconverter/inst/extdata
curlconverter/inst/extdata/curl4.txt
curlconverter/inst/extdata/curl7.txt
curlconverter/inst/extdata/curl8.txt
curlconverter/inst/extdata/curl2.txt
curlconverter/inst/extdata/curl9.txt
curlconverter/inst/extdata/curl1.txt
curlconverter/inst/extdata/curl6.txt
curlconverter/inst/extdata/curl3.txt
curlconverter/inst/extdata/curl5.txt
curlconverter/inst/doc
curlconverter/inst/doc/using_curlconvertr.Rmd
curlconverter/inst/doc/using_curlconvertr.html
curlconverter/inst/doc/using_curlconvertr.R
curlconverter/inst/js
curlconverter/inst/js/in.js
curlconverter/inst/js/curl-bundle.js
curlconverter/inst/js/README
curlconverter/inst/js/npm-debug.log
curlconverter/tests
curlconverter/tests/testthat.R
curlconverter/tests/testthat
curlconverter/tests/testthat/test-curconverterl.R
curlconverter/NAMESPACE
curlconverter/NEWS
curlconverter/R
curlconverter/R/curlconverter.r
curlconverter/R/curlconverter-package.r
curlconverter/R/utils.r
curlconverter/R/make_req.r
curlconverter/R/zzz.r
curlconverter/R/parse_query.r
curlconverter/vignettes
curlconverter/vignettes/using_curlconvertr.Rmd
curlconverter/README.md
curlconverter/MD5
curlconverter/build
curlconverter/build/vignette.rds
curlconverter/DESCRIPTION
curlconverter/man
curlconverter/man/curlconverter.Rd
curlconverter/man/pipe.Rd
curlconverter/man/straighten.Rd
curlconverter/man/parse_query.Rd
curlconverter/man/make_req.Rd