Danke dir!

- - - - - - - - - - Beitrag nachträglich erweitert - - - - - - - - - -

Mit dem Upload habe ich ebenfalls schwierigkeiten

PHP-Code:
function verystream_upload($file)
{
    
$headers   = array("Content-Type:multipart/form-data");
    
$POST_DATA = array(
        
'file' => '@' . $file,
    );

    
$curl = curl_init();
    
curl_setopt($curl, CURLOPT_URL, "https://api.verystream.com/file/ul?login=xxx&key=xxxxx");
    
/*curl_setopt($curl, CURLOPT_POST, 1);*/
    
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    
curl_setopt($curl, CURLOPT_POSTFIELDS, $POST_DATA);
    
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
    
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
    
$curl_exec = curl_exec($curl);
    
curl_close($curl);
    
$res = json_decode($curl_exec, true);

    return 
$res;
}

$upload = verystream_upload('test.zip');

echo 
"Test1";
echo 
"<hr />";
echo 
$upload['result']['url'];
echo 
"<hr />";
echo 
'<pre>' . var_export($upload, true) . '</pre>'; 
Ich bekomme aber dies zurück:
Code:
array (
  'status' => 200,
  'msg' => 'OK',
  'result' => 
  array (
    'url' => 'https://ohsomp4wow.verystream.net/uploadproxy/OYAHx67_ADjldxyy',
    'valid_until' => '2019-09-05 17:46:11',
  ),
)
Beim Aufruf des Links sagt er aber:
msg: no POST request: GET
status: 400

https://verystream.com/api#upload