Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $baseUrl = 'http://mediafirewall-ai.themillionvisions.com/mfw/media/sams@trek.com/url/filters'; $filters = 'Type(HighDefinition)'; $mediaUrl = 'https://media-firewall.s3.ap-south-1.amazonaws.com/Input/MEDIA/%2FVIDEO/ze.mp4'; $apikey = 'vMoIhSZbp9ucWNEHSwyjV1qnU2iaIxYN'; // Build the URL with query parameters $uri = $baseUrl . '?filters=' . urlencode($filters) . '&mediaUrl=' . urlencode($mediaUrl) . '&apikey=' . $apikey; // Initialize cURL session $ch = curl_init($uri); // Set cURL options curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); // Execute the cURL request $response = curl_exec($ch); // Check for cURL errors if (curl_errno($ch)) { echo 'Curl error: ' . curl_error($ch); } // Close cURL session curl_close($ch); // Output the response echo $response; ?>
Copy Clear