Equivalent of cURL for Ruby?

前端 未结 12 2668
不知归路
不知归路 2020-11-29 00:33

Is there a cURL library for Ruby?

12条回答
  •  难免孤独
    2020-11-29 01:06

    If you know how to write your request as a curl command, there is an online tool that can turn it into ruby (2.0+) code: curl-to-ruby

    Currently, it knows the following options: -d/--data, -H/--header, -I/--head, -u/--user, --url, and -X/--request. It is open to contributions.

提交回复
热议问题