store url and download
===

Hopefully someone can help me: here is what I'm trying to accomplish. 

I'm attempting to find a way to take a URL for example: 

http://test.example.com/foo?http://google.com/stylesheet.css

And actually download and save the file (http://google.com/stylesheet.css) to my proxy server.

I actually got it working by hacking together a netcat listener and outputting to a flat file which saved the entire URL, parsed it and then used curl to download but there has got to be a better way.