i have use the Ruby Gem rest-client
for request on a url of a website. and i get the following error...
RestClient::Unauthorized (401 Unauthorized):
app/controllers/api/v1/channels_controller.rb:199:in `streaming_link'
help me to fix it. my controller method is bellow
def streaming_link
url = URI.encode("http://eboundservices.com/hash/hash_app.php?code=orientplay")
result = RestClient::Request.new({:user => "hashapp", :password => "PlayFair00",:method => :post, :url => url}).execute
return render :json =>{:success=>true,:result=>result}
end