Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"https://accesscenter.roundrockisd.org/HomeAccess/Account/LogOn");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS,
- "Database=10&LogOnDetails.UserName=username&LogOnDetails.Password=password");
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
- curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
- // receive server response ...
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $server_output = curl_exec ($ch);
- curl_close ($ch);
- echo $server_output;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement