there is already similar questions on stackoverflow, but none of their solutions have been working for me. I'm trying to grab a page on LoveIt.com with cURL, but it returns me a 404 error, while the url works fine in the browser :

```
        $url = 'http://loveit.com/loves/P0D1jlFaIOzzZfZqj_bY3KV';

        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
        curl_setopt ($curl, CURLOPT_HEADER, false);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($curl, CURLOPT_REFERER,'http://loveit.com/');

```

Here's the header I receive :

> 
> Array ( [url] => <http://loveit.com/loves/P0D1jlFaIOzzZfZqj_bY3KV> [content\_type] => text/html; charset=utf-8 [http\_code] => 404 [header\_size] => 667 [request\_size] => 172 [filetime] => -1 [ssl\_verify\_result] => 0 [redirect\_count] => 0 [total\_time] => 0.320466 [namelookup\_time] => 0.000326 [connect\_time] => 0.119046 [pretransfer\_time] => 0.119089 [size\_upload] => 0 [size\_download] => 499 [speed\_download] => 1557 [speed\_upload] => 0 [download\_content\_length] => 499 [upload\_content\_length] => 0 [starttransfer\_time] => 0.320438 [redirect\_time] => 0 [certinfo] => Array ( ) [primary\_ip] => --- [primary\_port] => 80 [local\_ip] => --- [local\_port] => 53837 [redirect\_url] => )
> 
> 
> 

I read that some website had protections against this kind of scripts; and I did test some solutions proposed, but none worked for me (CURLOPT\_USERAGENT,CURLOPT\_REFERER...)

Any ideas of what's happening here ? 

I would like to backup my LoveIt account, that's why i'm making this (no exports functions and no replies from LoveIt.com about the health of the website)