diff --git a/lib/api/source/sync.php b/lib/api/source/sync.php index 9702da9..930a22c 100755 --- a/lib/api/source/sync.php +++ b/lib/api/source/sync.php @@ -75,16 +75,16 @@ $postarray['renew'] = $new; /* (3) Parse postfiels to multipart format */ - $postraw = "--$boundary"; + #$postraw = "--$boundary"; - foreach($postarray as $postkey=>$postvalue) - $postraw .= "\r\nContent-Disposition: form-data; name=\"$postkey\"\r\n\r\n$postvalue\r\n--$boundary"; + #foreach($postarray as $postkey=>$postvalue) + # $postraw .= "\r\nContent-Disposition: form-data; name=\"$postkey\"\r\n\r\n$postvalue\r\n--$boundary"; - $postraw .= "--"; + #$postraw .= "--"; /* (4) Set postdata raw to curl */ - curl_setopt($curl, CURLOPT_POSTFIELDS, $postraw); + curl_setopt($curl, CURLOPT_POSTFIELDS, $postarray);