title: rest http basic authorization with ruby
body: <pre><code>resource = RestClient::Resource.new('http://protected/resource', 'user', 'pass')
  </code></pre>
  
  <p>I have seen the above link, when i am serchng for http basic authentication with ruby. But     my question is how to retreive and decode  this user and pass for the login purpose?</p>