Showing posts with label cgi. Show all posts
Showing posts with label cgi. Show all posts

Sunday, November 05, 2006

FuckProxy 0.1 Beta is released again!!

Yeah... This time FuckProxy is a firefox extension and not a greasemonkey script. So easier installation and easy to use!
So what are you waiting for? Get FuckProxy.
For those who don't know what is FuckProxy project, here is a brief description:-
Most of the time IIIT's proxy(204) goes down even when the ISP link is perfect. In such cases internet can be accessed using 200. FuckProxy firefox extension lets you do that by using 200 as a CGI Proxy.
Adds a "View this page with FuckProxy" or "Open Link Target with FuckProxy" option to your Firefox right-click menu, depending on where you click. Also adds a "View with FuckProxy" Button for the address bar.

There is one more good news:-
I have succeeded in my search for a IIIT system that connects to net without proxy. I am testing it for speed and then I will include it in my project.
Enjoy!!

TechnoratiTechnorati: , , ,

Friday, November 03, 2006

Finally FuckProxy 0.1 Beta is released!

I have been saying in the last 3-4 posts that FuckProxy is almost complete. Well now it is fully complete and I have formally released FuckProxy 0.1 Beta.
For more on "why and what of FuckProxy?", visit my previous post.

I found that most of the time IIIT's proxy(204) goes down even when the ISP link is perfect. In such cases internet can be accessed using 200. This Greasemonkey(what is Greasemonkey) script lets u do that by using 200 as a CGI Proxy.

How to install?

  1. Install Firefox (If you don't have it)
  2. Install Greasemonkey Firefox Extension (If you don't have it, and restart Firefox)
  3. Install FuckProxy
Thats it. Now whenever 204 is down, click on Tools->Greasemonkey->User Script Commands->Enable FuckProxy. And start browsing!
[Note : When you install FuckProxy for the first time, remember to refresh any one of the page. Or open a new tab and type some url.]

If you want to stop using FuckProxy then click on Tools->Greasemonkey->User Script Commands->Disable FuckProxy.

Have Fun!!

PS: Then name FuckProxy was coined by my friend Bharat Joshi. Thanks to him for providing me with such a creative name.

TechnoratiTechnorati: , , ,

Alternatives to FuckProxy

My mind travels faster than speed of light. FuckProxy is not even complete and I have already thought of two more approaches to tackle this same problem. And did I mention that the FuckProxy project is my 6th approach for creating a proxy. Well... none of them was perfect and so I keep trying newer and newer approaches. FuckProxy is a totally new approach that uses greasemonkey. And its almost over. Beta version is just coming.
Well... now the alternatives:-

1. I heard newer versions of python have some built-in library for creating proxy servers. I could run such a proxy server on 200 and bingo nothing else needs to be done. This is not the proxy that I have been making for so long. This one is not like anonymous proxy, but exactly like the 204 proxy using port 8080. The only possible glitch could be the requirement of superuser privileges. I have not seen yet whether it needs super user privileges or not.

2. I could make a firefox extension that changes each url just before it is fetched. This will be very easy if I could find how to do it. No more parsing the page source or DOM.

I have also thought to improve FuckProxy. I could install my proxy cgi scripts, that is presently on 200, on several other iiit systems that have direct access to internet and my greasemonkey script could use all of them at random to balance the load, enhancing the user experience!

TechnoratiTechnorati: , , , ,

Thursday, November 02, 2006

Server Side 301, 302 HTTP Response Header Redirect in python

Today while working on my FuckProxy project, I got totally frustrated while writing the code for 301 redirect http response header in python.
PHP has this small and easy to use code for it:-

header('HTTP/1.1 301 Moved Permanently');
header('Location: '.$location);
But for python no such function exists. Moreover I spent 2-3 hrs on net searching for it. But there was no exact answer. Finally by several hit-and-trials and using the information collected from net, I could do it:-
print "Status: 301"
print "Location: " + location
print
sys.exit(1)
Of course, you must include sys using "import sys" statement.
For 302 (temporary redirect) just replace 301 to 302 in above code.
Thats it.
Done!!

TechnoratiTechnorati: , ,