Skip to content

curl_translate() should extract query parameters #259

@mgirlich

Description

@mgirlich
httr2::curl_translate("curl http://x.com?string=abcde&b=2")

gives

request("http://x.com?string=abcde&b=2") %>% 
  req_perform()

It would be much nicer if this were

request("http://x.com") %>% 
  req_url_query(
    string = "abcde",
    b = "2",
  ) %>% 
  req_perform()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions