Click to See Complete Forum and Search --> : Proxy Server
TrozanHorse
January 9th, 2009, 03:46 AM
hi!
I am a B.Tech student and have to make a proxy server as a project in this sem, can anybody help to do so.I mean can anybody guide me how to make proxy server, where to start from what to study ,what are the steps ,what all I need etc.
Any help will be appreciated.
Thank you in advance
j0nas
January 9th, 2009, 08:33 AM
Hi,
You first need to know what kind of proxy server you need to implement. What kind of application will it proxy? If it is purely for HTTP, then you should look into a "web proxy". If it more generic TCP/UDP communication, look at "SOCKS proxy".
TrozanHorse
January 10th, 2009, 04:43 AM
First of all thanks for your reply.....I have to make http proxy server bcoz I m thinking to make a caching proxy server which will also be able to filter the request...so I think http proxy is only capable of such things....n I will look into web proxy as per your suggestion and come back to you after that.....Any more suggestion is welcome
TrozanHorse
January 11th, 2009, 11:18 PM
Hi,
I tried looking for web proxy but cud not get nething relevent to proxy server......please give some guidelines how to make a proxy server
MikeAThon
January 14th, 2009, 03:47 PM
Try a search at this (and other sites) for "proxy server". Here are two from CodeGuru. I have not looked at the code and cannot make a recommendation about either:
http://www.codeguru.com/cpp/i-n/internet/generalinternet/article.php/c3407/
http://www.codeguru.com/cpp/i-n/internet/http/article.php/c3383/
In addition, more code samples might be found at sourceforge (i.e., at www.sourceforge.net ). In a quick search for source code that implements http proxies, I found the following. Usually, you'll find them associated with web-filtering programs, like:
"Privoxy" at http://sourceforge.net/projects/ijbswa/
"Proximodo" at http://sourceforge.net/projects/proximodo/
"Middleman" at http://sourceforge.net/projects/middle-man/
"tinyproxy" at http://sourceforge.net/projects/tinyproxy/
More generally, http://www.letmegooglethatforyou.com/?q=%22source+code%22+%22http+proxy%22
Mike
TrozanHorse
January 17th, 2009, 12:38 AM
thanx for the reply .....but I have already downloaded such codes. The reason I started this thread was...understanding somebody's code is a tough job,,,,therefore I wt anted a sort of algorithm that should give me what are the steps to make a proxy server...and then code that myself...........If you can help in this respect it would be great.
ahoodin
January 17th, 2009, 09:15 AM
Gosh that was easy:
http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=proxy+server+algorithm&btnG=Google+Search
http://204.3.199.128/support/firewall/node21.htm
:D:D:D:wave:
MikeAThon
January 17th, 2009, 01:37 PM
The second link I posted has a very simple proxy server that should be easy to undersand. It starts a new thread for every new incoming connection. Since every connection has its own thread, the programming is simple and the algorithm is exposed. The entire proxy server is contained in about 300 lines of code. Comments in the code explain what the author is doing. Study that for the "algorithm" that you are seeking.
Here is the link again: http://www.codeguru.com/cpp/i-n/internet/http/article.php/c3383/
TrozanHorse
January 25th, 2009, 12:48 AM
sorry for the late reply .....I got the algorithm and now I will try understanding the code given by MikeAThon and come back to you if I face any problem
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.