|
@@ -349,9 +349,11 @@ function pdfCurl($file_name)
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, ['file'=>new \CURLFile(realpath($file_name))]);
|
|
|
$headers = array();
|
|
|
|
|
|
- $headers[] = 'Content-Type: application/x-www-form-urlencoded';
|
|
|
- $headers[] = 'Content-Type: multipart/form-data';
|
|
|
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
|
|
+// $headers[] = 'Content-Type: application/x-www-form-urlencoded';
|
|
|
+// $headers[] = 'Content-Type: multipart/form-data';
|
|
|
+// curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
|
|
+ $info = curl_getinfo($ch);
|
|
|
+ dump($info);
|
|
|
$result = curl_exec($ch);
|
|
|
if (curl_errno($ch)) {
|
|
|
echo 'Error:' . curl_error($ch);
|