Skip to content
Snippets Groups Projects
Verified Commit da9a0158 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Fix M2M - Transfer

parent 9e5ba42d
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,8 @@ class Transfer{ ...@@ -28,7 +28,8 @@ class Transfer{
} }
} }
public function transfer($target, $reference, $communicationType = 'url') { public function transfer($target, $reference, $type = null)
{
$adapter = ''; $adapter = '';
$res['status'] = 0; $res['status'] = 0;
$res['content'] = ''; $res['content'] = '';
...@@ -43,7 +44,12 @@ class Transfer{ ...@@ -43,7 +44,12 @@ class Transfer{
return $res; return $res;
} }
$param = $adapter->getInformations($reference); // [0] = url, [1] = header, [2] = cookie, [3] = data // [0] = url, [1] = header, [2] = cookie, [3] = data
if ($type) {
$param = $adapter->getInformations($reference, $type);
} else {
$param = $adapter->getInformations($reference);
}
try { try {
$curl = curl_init(); $curl = curl_init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment