How about just doing `$this->rfs->getContents('api.github.com', $protocol . $filePath, false, array('http' => array('request_fulluri' => false)));` instead of the whole curl thing? That way you test again without fulluri, and check if it works without. It would simplify things greatly.