Displaying 2 results from an estimated 2 matches for "proxy_class".
2010 Apr 16
0
How do I redirect my users to video via a proxy server?
...ers 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 hav...
2010 May 08
19
mb_chars.upcase and Ruby 1.9.2
I''m testing ruby-head through rvm but can''t get ''ação''.mb_chars.upcase
== ''AÇÃO''... I get ''AçãO'' instead...
This happens both for Rails 2.3.5 and Rails 3 beta 3...
How can I get upcase to work correctly?
Thanks in advance,
Rodrigo.
--
You received this message because you are subscribed to the Google Groups "Ruby