문제

I am writing a script to test various web-services in ruby. To make http requests thus far I have been using Net::HTTP but today I realized I needed to make an OPTIONS request and retrieve some JSON from the response.

Unfortunately ruby does not currently support this: https://bugs.ruby-lang.org/issues/8429

Does anyone know of gem that supports this or some other way to get this response?

도움이 되었습니까?

해결책

This is an alternative which supports lot of options

https://rubygems.org/gems/curb

다른 팁

Mechanize Gem

Try this gem it's very usefull and simple in use. I use it for parsing and another different tasks.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top