How can I send an HTTP PUT request in ruby?
===

I am trying to send a PUT request to a particular URL, and have thus far been unsuccessful in doing so.

I can't reveal the specifics, however the URL includes a port number.

If I were doing it through an http requester gui, such as [this][1] 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`

How can I replicate such a request in Ruby? Also note that I need to be able to view the response if possible to ensure that it was successful.

  [1]: https://addons.mozilla.org/en-us/firefox/addon/httprequester/