problem with curl and port 8087
Posted: Fri May 09, 2014 7:45 pm
Hello guys, we are facing a problem, we are using the API in order to get the information with a little modification, but this shouldn't be the problem, here is the curl code that we are using:
as you can see, the code shouldn't be the problem.
Some weird thing is, the use of it is fine over a local environment, but when I try to run this over the dedicated server this doesn't work, the error code is the next one: "Fatal error: Maximum execution time of 120 seconds exceeded in". I repeat, the code works in local environment (pointing to the hosting) but not in the hosting in self.
We are out of ideas at this moment, we tryed diff ports/configurations and nothing works. PMserver is running and listening on the 8087 port.
Thanks in advance.-
Code: Select all
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_PORT, 8087);
curl_setopt($curl, CURLOPT_VERBOSE, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$response = trim(curl_exec($curl));
Some weird thing is, the use of it is fine over a local environment, but when I try to run this over the dedicated server this doesn't work, the error code is the next one: "Fatal error: Maximum execution time of 120 seconds exceeded in". I repeat, the code works in local environment (pointing to the hosting) but not in the hosting in self.
We are out of ideas at this moment, we tryed diff ports/configurations and nothing works. PMserver is running and listening on the 8087 port.
Thanks in advance.-