]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/client/http/class_HttpClient.p
Cannot be generic, due to StorableSocket class (may be rewritten again, one day)
[core.git] / framework / main / classes / client / http / class_HttpClient.p
diff --git a/framework/main/classes/client/http/class_HttpClient.p b/framework/main/classes/client/http/class_HttpClient.p
deleted file mode 100644 (file)
index 98e50d0..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-
-               // First get a socket
-               // @TODO Add some DNS caching here
-
-               // Open connection
-               if ($helperInstance->isProxyUsed() === true) {
-                       // Resolve hostname into IP address
-                       $ip = ConsoleTools::resolveIpAddress($helperInstance->getConfigInstance()->getConfigEntry('proxy_host'));
-
-                       // @TODO Handle $ip = false
-
-                       // Connect to host through proxy connection
-                       $socketResource = fsockopen($ip, $helperInstance->getConfigInstance()->getConfigEntry('proxy_port'), $errorNo, $errorStr, 30);
-               } else {
-                       // Connect to host directly
-                       $socketResource = fsockopen('188.138.90.169', 80, $errorNo, $errorStr, 30);
-               }
-
-               // Check if there was an error else
-               if ($errorNo > 0) {
-                       // Then throw again
-                       throw new InvalidSocketException(array($helperInstance, $socketResource, $errorNo, $errorStr), BaseListener::EXCEPTION_INVALID_SOCKET);
-               } // END - if