<?php
/*
* This file is to distribute the requests to different servers , is divided by functions
* Para : Http-Request
* Data : 2014.5.5
*/
// include the mapping-array
include './mapping/RequestType.php';
include './mapping/MappingTable.php';
// Get functionName from clients
$functionName = $_POST['functionName'];
// include the ReBuildHttpBag function
include 'ReBuildHttpBag.php';
// Generate the para needed
$curPageName = "/WinPhone/Distribute.php";
$desPageName = $mapping[$functionName]['pageName'];
$serverPath = $mapping[$functionName]['serverPath'];
$serverPort = 80;
ReBuildHttpBag($_GET, $curPageName, $desPageName, $serverPath, $serverPort);
?>