using add_to_curl_request

using add_to_curl_request

by Tzahi Ben Artzi -
Number of replies: 0

Hello, I am trying to use add_to_curl_request with a file.

I have the following code:

$ch = curl_init($url);
$mainfile->add_to_curl_request($ch,"Key");
var_dump($ch);

And i get:

Warning:  Attempt to modify property of non-object in /var/www/html/moodle/lib/filestorage/file_system.php on line 365

Does anyone know why?

Average of ratings: -