CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Posts
    12

    Question Socket programming on Unix with C- to write a simple web proxy

    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

  2. #2
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    Re: Socket programming on Unix with C- to write a simple web proxy

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured