I am trying to send a PUT request to a particular URL, and have thus far been unsuccessful in doing so.
If I were doing it through an HTTP requester GUI, such as this one, it would be as simple as doing a PUT on the following url:
http://www.mywebsite.com:port/Application?key=apikey&id=id&option=enable|disable
Note that a port number is specified in the above request. I will also need to do that when submitting the request through the ruby code.
How can I replicate such a request in Ruby?
Larry’s answer helped point me in the right direction. A little more digging helped me find a more elegant solution guided by this answer.