test
// Variables to Post
$local_file = “http://server1.kproxy.com/servlet/redirect.srv/sruj/saovobzikg/spqr/p1/path/to/filename.avi”;
$file_to_upload = array(
‘file’=>’@’.$local_file,
‘convert’=>’1′,
‘user’=>’YOUR_USERNAME’,
‘password’=>’YOUR_PASSWORD’,
‘folder’=>’FOLDER_NAME’
);
// Do Curl Request
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,’http://upload.putlocker.com/uploadapi.php’);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $file_to_upload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result=curl_exec ($ch);
curl_close ($ch);
// Do Stuff with Results
echo $result;




