I’m not a PHP guy, but I need to set up a bare bones proxy for a web service. As an example, let’s use google. Let’s say that I have a proxy server set up at: http://mydumbproxy.com/index.php and I want it to act just like http://www.google.com/search. So for instance, if someone typed in the url http://mydumbproxy.com/index.php?q=dancing+banana, they would get the same thing as if they had typed in http://www.google.com/search?q=dancing+banana
How would I do this?
Note: Eventually this will become more than a straight passthrough. It will provide a security layer between the public at large and dangerous access of the base web service.
After starting with Franks answer and googling a bit and put this scrap together which seems to do what I want: