function quickPost($url, $data) { $bits = parse_url($url); $host = $bits['host']; $port = isset($bits['port']) ? $bits['port'] : 80; $path = isset($bits['path']) ? $bits['path'] : '/'; $client = new Sp_Payment_Gopay_HttpClient($host, $port); if (!$client->post($path, $data)) { return false; } else { return $client->getContent(); } }