| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi guys! Is there an http proxy module that could be used ? For example , I would like to point my browser through it and filter some web content using my proxy. I know the same thing could be done using greasemonkey and the like , but I would like to know if it can be done with ruby . Thanks -- Posted via http://www.ruby-forum.com/. |
|
#2
| |||
| |||
| Lex Williams wrote: > Hi guys! > > Is there an http proxy module that could be used ? For example , I would > like to point my browser through it and filter some web content using my > proxy. I know the same thing could be done using greasemonkey and the > like , but I would like to know if it can be done with ruby . Webrick does this nicely. See sample/webrick/httpproxy.rb in the ruby source distribution. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 |
|
#3
| |||
| |||
| Lex Williams wrote: > Hi guys! > > Is there an http proxy module that could be used ? For example , I would > like to point my browser through it and filter some web content using my > proxy. I know the same thing could be done using greasemonkey and the > like , but I would like to know if it can be done with ruby . > > Thanks require 'net/http' Net::HTTP::Proxy(proxy_addr,proxy_port)::start("ww w.google.com")\ { |http| h,b=*http.get("/") p h p h.to_hash puts b } -- Posted via http://www.ruby-forum.com/. |
|
#4
| |||
| |||
| Thomas B. wrote: > Lex Williams wrote: >> Hi guys! >> >> Is there an http proxy module that could be used ? For example , I would >> like to point my browser through it and filter some web content using my >> proxy. I know the same thing could be done using greasemonkey and the >> like , but I would like to know if it can be done with ruby . >> >> Thanks > > require 'net/http' > > Net::HTTP::Proxy(proxy_addr,proxy_port)::start("ww w.google.com")\ > { |http| > h,b=*http.get("/") > p h > p h.to_hash > puts b > } Isn't that a client? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.