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