from FGC to Curl

Changed all Filegetcontents to curl with a timeout and fixed a small error.
Merge pull request #1 from dotMatt/patch-2

from FGC to Curl