Can the class connect to certain port? $url = 'http://example.com:9090'; $mcurl = new Curl\Curl(); $mcurl->setFollowLocation(); $mcurl->get($url);