Hi I'm trying to build a web proxy in PHP, but I want the script that builds it to accomodate parameters from the requesting URL so that the proxy URL is dynamic. How do I do this? This is my code:
soapFetch.php:
<?php
die( file_get_contents( 'url.com/Spark/SparkService.asmx?op=LoginConsumer' ) );
?>
Right now, the op= parameter only accommodates one function, Login Consumer. But I want it to be able to support three functions: LoginConsumer, InsertConsumer, and UpdateConsumer. I would like to try to have it call the appropriate function based on whatever I passed to soapFetch.php - if I call soapFetch.php?op=InsertConsumer, it would call url.com/Spark/SparkService.asmx?op=InsertConsumer. If I call soapFetch.php?op=UpdateConsumer, it calls url.com/Spark/SparkService.asmx?op=UpdateConsumer, etc.
How do I do this?