Follow up on the answer given here https://stackoverflow.com/a/2602624/37759
This solution works for image or pdfs, however, when I try it with text or javascript files curl_exec
return false
. Why?
For example getting file size of jquery file https://raw.github.com/jquery/jquery/master/src/ajax.js