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($curlCURLOPT_URL"https://api.verystream.com/file/ul?login=xxx&key=xxxxx");
    
/*curl_setopt($curl, CURLOPT_POST, 1);*/
    
curl_setopt($curlCURLOPT_RETURNTRANSFER1);
    
curl_setopt($curlCURLOPT_POSTFIELDS$POST_DATA);
    
curl_setopt($curlCURLOPT_HTTPHEADER$headers);
    
curl_setopt($curlCURLOPT_CUSTOMREQUEST'GET');
    
$curl_exec curl_exec($curl);
    
curl_close($curl);
    
$res json_decode($curl_exectrue);

    return 
$res;
}

$upload verystream_upload('test.zip');

echo 
"Test1";
echo 
"<hr />";
echo 
$upload['result']['url'];
echo 
"<hr />";
echo 
'<pre>' var_export($uploadtrue) . '</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