Fixed HTTP REFERER issue when downloading
Unfortunately, it doesn't work for video with a watermark as no HTTP referer is passed when it is opened directly.
This commit is contained in:
		| @@ -10,7 +10,8 @@ function getContent($url, $geturl = false) | ||||
|         CURLOPT_FOLLOWLOCATION => true, | ||||
|         CURLOPT_USERAGENT => 'okhttp', | ||||
|         CURLOPT_ENCODING       => "utf-8", | ||||
|         CURLOPT_AUTOREFERER    => true, | ||||
|         CURLOPT_AUTOREFERER    => false, | ||||
|         CURLOPT_REFERER        => 'https://www.tiktok.com/', | ||||
|         CURLOPT_CONNECTTIMEOUT => 30, | ||||
|         CURLOPT_SSL_VERIFYHOST => false, | ||||
|         CURLOPT_SSL_VERIFYPEER => false, | ||||
| @@ -49,7 +50,8 @@ function getContent($url, $geturl = false) | ||||
|         CURLOPT_FOLLOWLOCATION => true, | ||||
|         CURLOPT_USERAGENT => 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0', | ||||
|         CURLOPT_ENCODING       => "utf-8", | ||||
|         CURLOPT_AUTOREFERER    => true, | ||||
|         CURLOPT_AUTOREFERER    => false, | ||||
|         CURLOPT_REFERER        => 'https://www.tiktok.com/', | ||||
|         CURLOPT_CONNECTTIMEOUT => 30, | ||||
|         CURLOPT_SSL_VERIFYHOST => false, | ||||
|         CURLOPT_SSL_VERIFYPEER => false, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tufayel Ahmed
					Tufayel Ahmed