|
@@ -1,9 +1,12 @@
|
|
|
<?php
|
|
|
|
|
|
-$url = 'https://calicote-sync.dev.iprospective.fr/test.php';
|
|
|
+require_once '../config/config.inc.php';
|
|
|
+
|
|
|
+$url = SYNC_URL.'testcurl_dest.php';
|
|
|
$SYNC_AGENT = 'Dolibarr API Test';
|
|
|
$timeout = '30';
|
|
|
$post = $_POST;
|
|
|
+echo '<p>'.$url.'</p>';
|
|
|
|
|
|
$ch = curl_init($url); // initialize curl with given url
|
|
|
//curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]); // set useragent
|
|
@@ -18,3 +21,4 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
|
|
|
$raw_data = curl_exec($ch);
|
|
|
echo $raw_data; //die();
|
|
|
|
|
|
+echo '<p>END</p>';
|