hrbrmstr / curlconverter

:curly_loop: :arrow_right: :heavy_minus_sign: Translate cURL command lines into parameters for use with httr or actual httr calls (R)
http://rud.is/b/2016/02/10/craft-httr-calls-cleverly-with-curlconverter/
Other
91 stars 12 forks source link

`--user` Flag not interpreted in `straighten` #8

Closed rentrop closed 8 years ago

rentrop commented 8 years ago

When trying to convert a authentification flag like

cURL <- 'curl --user name:password https://httpbin.org/basic-auth/name/password'
httr_call <- make_req(straighten(cURL))

httr_call looks as follows:

> httr_call
[[1]]
function () 
httr::VERB(verb = "GET", url = "https://httpbin.org/basic-auth/name/password")
<environment: 0x103ce1ca8>

Is it by design that the --user flag is not interpreted?

hrbrmstr commented 8 years ago

try the github/devel version. it should work now. the js lib I'm using did not handle them but I hacked it into the js lib earlier this week.

rentrop commented 8 years ago

Thats perfect, thanks

hrbrmstr commented 8 years ago

cool. glad it helps!