Is there a way to tell curl to not use cache

前端 未结 5 2018
盖世英雄少女心
盖世英雄少女心 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:29

    Use CURLOPT_FRESH_CONNECT - TRUE to force the use of a new connection instead of a cached one.

    Example:

    
    

    for more details about curl check out http://php.net/manual/en/function.curl-setopt.php

    may this help you.

提交回复
热议问题