Is there a way to tell curl to not use cache

前端 未结 5 1995
盖世英雄少女心
盖世英雄少女心 2021-02-01 03:45

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, CURL         


        
5条回答
  •  無奈伤痛
    2021-02-01 04:36

    You can tell CURL to use fresh data by setting CURLOPT_FRESH_CONNECT to TRUE

    You can read more about CURL function here :

    http://php.net/manual/en/function.curl-setopt.php

提交回复
热议问题