tags:

views:

40

answers:

2

This might be a beginner question but I did some googling and couldn't find an answer so bear with me.

I was wondering if there was a resource, tutorial, wiki, etc that explained how to create an http proxy. It would be good to see it in ruby but any language will do if that's not possible.

Thanks a lot

+1  A: 

The HTTP RFC (2616) will explain how to implement a HTTP server/proxy and all you could possibly ever want to know about the protocol itself.

Matthew Scharley
Thanks a lot matt! +1 Maybe I'm asking too much but is there a more "friendly" version?
Pablo Fernandez
@Pablo: Probably, but in my experience the more friendly the information, the less accurate and more error prone... If you need any help, I'm sure there's plenty of people who know HTTP inside out, and who know Ruby inside out who'd be happy to answer specific questions. As for reference implementations, it's not Ruby, but Squid is a well known one that is well supported on many platforms: http://www.squid-cache.org/Download/
Matthew Scharley
A: 

You might also take a look at the source code of Apache mod_proxy and mod_proxy_http

The modules are inside apache: http://httpd.apache.org/download.cgi#apache22

filippo