GitXplorerGitXplorer
b

ruby_proxy

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
769e509cd989136de1636ca0d79cd62b375f4d01

another README edit

bbsklaroff committed 13 years ago
Unverified
830f4f7983b51264ccbc6a7c65d6e64ec449aa67

updated README

bbsklaroff committed 13 years ago
Unverified
e0222d36d65f45ae2cb6737b255d44247bab75e9

final proxy

bbsklaroff committed 13 years ago
Unverified
1055ba44fc2572f3692b7a6635728012b495a3b9

almost done

bbsklaroff committed 13 years ago
Unverified
2d9e85678f1e0dee514f4dc8d85d893fa4859d78

implemented basic caching

bbsklaroff committed 13 years ago
Unverified
e7a29d69d2f6ea737db32de8f2cb880a71a8f34c

works pretty well

bbsklaroff committed 13 years ago

README

The README file for this repository.

Simple web proxy written in ruby. It's a work in progress, currently only handles GET requests, and does not send header information (also no https support). However, it caches all GET requests under 1 MB to temporary files on your machine. Note that the cache is cleared (and files removed) as soon as the program is terminated.

To run the proxy, you will first need to download the PriorityQueue gem (sudo gem install PriorityQueue), since I used someone's prewritten priorityqueue to help decide what to boot out of my cache.

Then, in Firefox, simply go to Edit->Preferences->Advanced->Network->Settings, and select Manual Proxy Configuration with HTTP Proxy: 127.0.0.1, Port: 2347. You can then start my server by running ruby1.9.1 proxy.rb from the command line.

You can specify port and maximum cache size (in MB) via command line arguments: ruby1.9.1 proxy.rb [port] [cache_size]. My proxy should work for all GET requests, and runs with multiple threads for multiple requests (which is a significant speed boost for large pages), but should not handle https, other HTTP verbs (e.g. POST), or cookies correctly.