Be careful though, the phpDigSetHeaders() function makes an ini_set('user_agent'...) call that isn't supported in versions of php < 4.3 (afaik)
As far as I can tell from the phpdig code, in versions of PHP 4.1 and 4.22 (the ones I tested on) Cookies are not sent properly for GET requests, only HEAD requests.
This is because the actual GET request of a file done in the phpdigTempFile(...) function is done using the PHP file(...) function not a home made GET request.
I think the authors use of ini_set to pass along the cookies is quite clever, it's too bad it's not supported in earlier versions of PHP.
|