November 28th, 2002, 11:47 AM
Make a HTTP proxy with C++
A HTTP proxy is usually a little gadget that filters your web browsing for advertisements or removes pop-ups. Or it could function as a gateway to the internet and buffer web pages. Anyhow, what the proxy does is receive messages from your browser, and pass them on to a web server. When the server responds, the message is passed on to the browser. Your typical middleware! Popular proxy servers are: Proxomitron (my favourite), Junkbuster(Linux) and Squid(enterprise).
This makes the perfect scenario for a networking tutorial in C++, because the proxy acts as both a client and a server. And networking is all about client/server, right?
So let's get down to business. Attached to this post is a zip which contains lots of code and a html document with the tutorial. The tutorial can also be found on my homepage. I made the poxy on my linux box, but it should compile on any windows box too. You might want to check out qmake by Trolltech because that's what I generate my makefile with. Instructions in the tutorial file...
December 1st, 2002, 12:06 AM
An awesome job Proactive
December 1st, 2002, 04:24 AM
I hope you like it! I've searched the web, and couldn't find any implementation of a proxy in C++. IMO plain C is harder to read, C++ is better organized and easier to understand.
December 27th, 2002, 04:24 AM
i cant download the file
it will start but will never stop
could u email it to me?
if so my email adress is firstname.lastname@example.org
December 28th, 2002, 08:23 AM
never mind i downloaded winzip ( i thought i had it) and it worked
i hope this comes in handy
December 28th, 2002, 10:12 AM
I am guessing you will be un able to use this with VB. When I get my new HDD I wil put on c++ and do it then...thanks.