# How do I redirect my users to video via a proxy server?

**URL:** <https://www.ruby-forum.com/t/how-do-i-redirect-my-users-to-video-via-a-proxy-server/187045>\
**Category:** Rails\
**Created:** [April 16, 2010, 5:31am UTC](https://www.ruby-forum.com/t/how-do-i-redirect-my-users-to-video-via-a-proxy-server/187045 "2010-04-16T05:31:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![obi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e9a140/32.png) [@obi](https://www.ruby-forum.com/u/obi)\
**Post date:** [April 16, 2010, 5:31am UTC](https://www.ruby-forum.com/t/how-do-i-redirect-my-users-to-video-via-a-proxy-server/187045/1 "2010-04-16T05:31:44Z")

</div>

I have a rails app where I am trying to re-direct my users to a video  
resource on a remote server via a proxy. I am using the Net::HTTP::Proxy  
class but I’m not sure the right way to do this.

I tried this code;

```
 urlToGet = 'videos/sample.mp4'

 proxy_host = 'myproxy.com'
 proxy_port = 80

  proxy_class = Net::HTTP::Proxy(proxy_host,proxy_port)
  res = proxy_class.start('www.example.com'){|http|
  redirect_to http.get(urlToGet)
   }

```

This gives me an error:  
NoMethodError (undefined method `net\_http\_see\_other\_url’ for  
#MyController:0xb6cf69ec):

I have been trying to figure this out for over a week, any help towards  
this will really be appreciated.  
Obi
