Equivalent of cURL for Ruby?

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

Is there a cURL library for Ruby?

12条回答
  •  [愿得一人]
    2020-11-29 01:22

    Use OpenURI and

      open("http://...", :http_basic_authentication=>[user, password])
    

    accessing sites/pages/resources that require HTTP authentication.

提交回复
热议问题