mirror of
https://github.com/hakasenyang/link-skipper
synced 2026-08-22 02:53:08 +09:00
Bug fixed
thanks for wazirsoft :)
This commit is contained in:
+2
-3
@@ -17,9 +17,8 @@
|
|||||||
public function WEBParsing($url, $cookie = NULL, $postparam = NULL, $otherheader = NULL)
|
public function WEBParsing($url, $cookie = NULL, $postparam = NULL, $otherheader = NULL)
|
||||||
{
|
{
|
||||||
$uri = parse_url($url);
|
$uri = parse_url($url);
|
||||||
$paramType = strtoupper($paramType);
|
if (!isset($uri['port'])) $uri['port'] = 80;
|
||||||
if (!$uri['port']) $uri['port'] = 80;
|
if (!isset($uri['path'])) $uri['path'] = "/";
|
||||||
if (!$uri['path']) $uri['path'] = "/";
|
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
$opts = array(CURLOPT_RETURNTRANSFER => true,
|
$opts = array(CURLOPT_RETURNTRANSFER => true,
|
||||||
CURLOPT_URL => $url,
|
CURLOPT_URL => $url,
|
||||||
|
|||||||
Reference in New Issue
Block a user