if(!
$this->curl_path
) return false;
if(function_exists("is_executable"
)) if (!
is_executable($this->curl_path
)) return false;
$this->host =
$URI_PARTS["host"
];
if(!
empty($URI_PARTS["port"
])) $this->port =
$URI_PARTS["port"
];
if($this->_isproxy
) { // using proxy, send entire URI
$this->
_httpsrequest($URI,
$URI,
$this->_httpmethod
);
} else { $path =
$URI_PARTS["path"
].
($URI_PARTS["query"
] ? "?".
$URI_PARTS["query"
] : ""
);
// no proxy, send only the path
$this->
_httpsrequest($path,
$URI,
$this->_httpmethod
);
} if($this->_redirectaddr
) { /* url was redirected, check if we've hit the max depth */