Quantcast
Channel: Is there a way to tell curl to not use cache - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Is there a way to tell curl to not use cache

$
0
0

I am trying to find out file size of an url:

$url1 = 'www.google.com';$curl1 = curl_init();curl_setopt($curl1, CURLOPT_URL, $url1); curl_setopt($curl1, CURLOPT_RETURNTRANSFER, TRUE);curl_exec($curl1);$file_size = curl_getinfo($curl1, CURLINFO_SIZE_DOWNLOAD ); $file_size_kb = $file_size / 1000;echo $file_size_kb;

The output is 43331. I think its too low because i have google cached. Can this be true? Also i tested google on some other site that calculates size of url, and it was twice as big.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images