Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save evsapi/2700861 to your computer and use it in GitHub Desktop.
Save evsapi/2700861 to your computer and use it in GitHub Desktop.
<?php
curl_setopt($ch, CURLOPT_URL, '<IDRIVESYNC SERVER LOCATION>/evs/downloadEvent');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$body = 'uid=' . '<USER ID>'. '&pwd=' . '<PASSWORD>'. '&month=' . '<MONTH OF EVENTS>'. '&year=' . '<YEAR OF EVENTS>'. '&eventid=' . '<ID OF EVENT>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded; charset=UTF-8'));
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($ch,CURLOPT_CAINFO,'<PATH TO CRT FILE>');
$output = curl_exec($ch);
curl_close($ch);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment