I need to have my php script access another page on a different server & then redirect all of the contents of that page to the client that requested the php page. the catch is that it also needs to forward the headers as well. for all practical purposes, the client should recieve the exact same thing from my php script that they'd get from the other server.
Has anyone done anything like this? I could make a simple proxy script, but I can't figure out how to get & forward the headers appropriately. I know it's possible in Perl, but I'm hoping there's a PHP way as well.
any help is appreciated
Has anyone done anything like this? I could make a simple proxy script, but I can't figure out how to get & forward the headers appropriately. I know it's possible in Perl, but I'm hoping there's a PHP way as well.
any help is appreciated