Skip to content

Instantly share code, notes, and snippets.

View aramk's full-sized avatar

Aram Kocharyan aramk

View GitHub Profile
<?php
define('COOKIE_FILE', 'cookie.txt');
define('HEADER_REGEX', '#^.*?(\r?\n){2}#msi');
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $assetURL,
CURLOPT_POST => FALSE,