Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $loginInfo=array("user"=>$_POST["User"], "pass"=>$_POST["Pass"]);
- $userfields=array("pass"=>$_POST["Pass"], "user"=>$_POST["User"], "uuid"=>"0xACA021");
- $urlBack="https://web.njit.edu/~ejh7/backEnd.php";
- $urlNJIT="https://cp4.njit.edu/cp/home/login";
- //BACK END REQUESRT
- $ch = curl_init();
- curl_setopt ($ch, CURLOPT_URL, $urlBack);
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt ($ch, CURLOPT_POST, 1);
- curl_setopt ($ch, CURLOPT_POSTFIELDS, $loginInfo);
- $curlResult = curl_exec($ch);
- curl_close($ch);
- echo $curlResult;
- //NJIT REQUEST
- $ch=curl_init();
- curl_setopt($ch, CURLOPT_URL, $urlNJIT);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $userfields);
- $response = curl_exec($ch);
- curl_close($ch);
- echo "$response";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement