We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ce7f62 commit 9a94917Copy full SHA for 9a94917
Embed/UrlResolver.php
@@ -8,6 +8,8 @@ class UrlResolver {
8
public static function resolve ($url) {
9
$connection = curl_init();
10
11
+ $tmpCookies = str_replace('//', '/', sys_get_temp_dir().'/embed-cookies.txt');
12
+
13
curl_setopt_array($connection, array(
14
CURLOPT_URL => $url,
15
CURLOPT_RETURNTRANSFER => true,
@@ -19,6 +21,8 @@ public static function resolve ($url) {
19
21
CURLOPT_SSL_VERIFYHOST => false,
20
22
CURLOPT_ENCODING => '',
23
CURLOPT_AUTOREFERER => true,
24
+ CURLOPT_COOKIEJAR => $tmpCookies,
25
+ CURLOPT_COOKIEFILE => $tmpCookies,
26
CURLOPT_USERAGENT => 'Embed PHP Library'
27
));
28
0 commit comments