Fetch only the headers in order to get the real article URL.
This commit is contained in:
parent
a536f94c8d
commit
fb59c87932
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ class Af_Unburn extends Plugin {
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($ch, CURLOPT_HEADER, true);
|
curl_setopt($ch, CURLOPT_HEADER, true);
|
||||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
||||||
|
curl_setopt($ch, CURLOPT_NOBODY, true);
|
||||||
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
|
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
|
||||||
|
|
||||||
if (defined('_CURL_HTTP_PROXY')) {
|
if (defined('_CURL_HTTP_PROXY')) {
|
||||||
|
|
Loading…
Reference in a new issue