Advertisement
Brandan

Untitled

Oct 28th, 2013
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?PHP
  2. $url = "http://www.wccca.com/PITSv2/Default.aspx";
  3. $datatopost = array (
  4. "smMain" => "smMain%7CtmrIncidents",
  5. "__EVENTTARGET" => "tmrIncidents",
  6. "__EVENTARGUMENT=" => "",
  7. "__ASYNCPOST" => "true",
  8. );
  9.  
  10. $ch = curl_init ($url);
  11. curl_setopt ($ch, CURLOPT_POST, true);
  12. curl_setopt ($ch, CURLOPT_POSTFIELDS, $datatopost);
  13. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
  14. $returndata = curl_exec ($ch);
  15.  
  16. echo $returndata;
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement