in chian many webs  are banned  ,such as titter,google code ,google
video,
i can't open http://video.google.com ,can i write a program to get what
i want?
i use proxy sever ,but it is still problem i can't solved.
p1 can run ,
p1
require 'rubygems'
require 'net/http'
require 'open-uri'
$proxy_addr = '212.170.251.27'
$proxy_port = '8080'
open('/home/pt/sina','w'){|wfile|
Net::HTTP::Proxy($proxy_addr,
$proxy_port).start('http://www.sina.com.cn') {|http|
wfile.write(Net::HTTP.get(URI.parse('http://www.sina.com.cn')))
}}
http://www.sina.com.cn is not banned.
p2 can not run,http://video.google.com  is banned in china now ,the
proxy sever can not work,can i write program with ruby to solve it?
people use  some soft to break gfw , it is interested for me to write a
program to do this.
p2
require 'rubygems'
require 'net/http'
require 'open-uri'
$proxy_addr = '212.170.251.27'
$proxy_port = '8080'
open('/home/pt/wfi','w'){|wfile|
Net::HTTP::Proxy($proxy_addr,
$proxy_port).start('http://video.google.com') {|http|
  wfile.write(Net::HTTP.get(URI.parse('http://video.google.com')))
}}

any advice aprriciated.
-- 
Posted via http://www.ruby-forum.com/.