Click to See Complete Forum and Search --> : Socket programming on Unix with C- to write a simple web proxy


maintain_secrecy
September 8th, 2005, 08:04 PM
Hello,
I am new to writing the socket programming. If there are any free tutorials online, plz help me.
My problem is:
To implement a simple web proxy where the proxy will handle GET requests of HTTP 1.0 only. No web object caching is required; support for HEAD, PUT, or other HTTP commands are NOT required. The URLs are assumed to include host names of the web servers and not IP addresses (e.g., no URLs in the form of http://128.110.80.55 ). In addition, URLs are assumed to include a host name and a simple directory path to a web object. It is not required to check and verify the correctness of the format of the given URL.
On the other hand, the web proxy should be able to handle multiple client requests at a time (say with a maximum of 10 clients at a time) and should be able to serve them simultaneously.

thx a lot to all of you well in advance

MikeAThon
September 9th, 2005, 03:20 PM
This sounds like phase one of a semester-long project in a CS course. Is it?

I have no Unix experience. You might find good code samples if you go to www.sourceforge.net and look for source code that implements http proxies. Usually, you'll find them associated with web-filtering programs, like "Privoxy" at http://sourceforge.net/projects/ijbswa/ or "Proximodo" at http://sourceforge.net/projects/proximodo/ or "Middleman" at http://sourceforge.net/projects/middle-man/ or "tinyproxy" at http://sourceforge.net/projects/tinyproxy/


Mike