X-Git-Url: http://git.pk910.de/?p=CodeSnippets.git;a=blobdiff_plain;f=PHP%2FHTTPConnector.class.php;h=fa37ecfb2f5ea249527ef19bc88fd580187de034;hp=596da829417ad3112e5040befa8e0f41ee1869af;hb=2c8a9c1e6c27fea71f368d4e2518c222c13064ad;hpb=447ecdf28c5ed152b2be3df6fee026c28852c95a diff --git a/PHP/HTTPConnector.class.php b/PHP/HTTPConnector.class.php index 596da82..fa37ecf 100644 --- a/PHP/HTTPConnector.class.php +++ b/PHP/HTTPConnector.class.php @@ -42,7 +42,7 @@ class HTTPConnector { $request = array(); $request['host'] = $matches[3]; $request['ssl'] = (strtolower($matches[2]) == "https"); - $request['port'] = ($matches[6] ? $matches[6] : 80); + $request['port'] = ($matches[6] ? $matches[6] : ($request['ssl'] ? 443 : 80)); $request['path'] = ($matches[7] ? $matches[7] : "/"); $request['header'] = $this->default_header; $request['header_only'] = false;