Unfortunately open-uri
only supports the GET
verb.
You can either drop down a level and use net/http
, or use rest-open-uri
, which was designed to support POST
and other verbs. You can do gem install rest-open-uri
to install it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…