<?php
        
// Your data
        
$your_api              "api_key";
        
$container_id "container_id";

        
$data = array(
            
"api" => $your_api,
            
"container_id" => $container_id,
        );

        
$post_url "http://relink.to/api/container_clone.php";
         
        
// create a post request
        
PostRequest($post_url$data);
        
/*
        ** The function:
        */
         
        
function PostRequest($url$_data) {

            
// convert variables array to string:
            
$data urldecode(http_build_query($_data));
            
            
$ch curl_init($url);                                                                      
            
curl_setopt($chCURLOPT_CUSTOMREQUEST"POST");                                                                     
            
curl_setopt($chCURLOPT_POSTFIELDS$data);                                                                  
            
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);                                                                      
                                                                                                                 
            
$result curl_exec($ch);
            echo 
$result;
        }
        
?>