Welcome Guest, Not a member yet? Register   Sign In
CURLRequest Class add port number
#1

Hello guys i have problem i have gateway server with url:443 and url:444 ports 443 is default (https) and all connection works but i cant connect on 444, i tested with culr in console it works.
Soon i will have more proxy servers connected to my gateway 445, 446, 447 and if i cant add port in CURLRequest Class im busted.

I add port in base url and with https://url:443 works


PHP Code:
    //$baseURI=$baseURI.":".$port;
        $client = \Config\Services::curlrequest([
            "baseURI" => $baseURI,
            CURLOPT_PORT=>$port,
            "port"=>$port,
            "debug"=>$isDebugCurl
        
]);
Any help please 
Reply
#2

Does not work?
PHP Code:
$client = \Config\Services::curlrequest([
    'baseURI' => 'https://url:444/',
]); 
Reply
#3

I found problem on the hosting server curl from that machine cant go to the port 444, from all other boxes and from my desktop computer can go, so it is not problem with CodeIgniter it is problem with shared hosting firewall or outdated curl v 7.19.7 it is old 13.7 years from todays date Smile sorry guys. It is hosting company server issue.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB