Performance Problem Invoke REST-API
$15-25 USD / hora
I am invoking some REST services from codeigniter 3.x on this site [login to view URL] the request that I make using this code is very slow (10 seconds aprox) both front-end and back-end are in the same server, but the performance is very slow.
/*********************Call-Api****************************/
public function callApi($url, $post_data=array()){
$str_data = json_encode($post_data);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,$str_data);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$headers[] = 'Accept: application/json';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Content-length: 0';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
curl_close($ch); // Seems like good practice
return json_decode($result);
}
The API REST is here:
[login to view URL]
When I try this same request in POSTMAN the response time is very fast (attach image), could you help me that I am doing wrong please.
Nº del proyecto: #17521585
Sobre el proyecto
Adjudicado a:
Hi, My name is Xiong Jie Zhao, live in China. I am a newbie in this guru, but I have a lot of experiences with web development. I found your bug already. Let you know when you hire me. Regards
8 freelancers están ofertando un promedio de $19 / hora por este trabajo
Hey!! Greeting of the day!! I am ready to resolve the Performance Problem Invoke REST.I have checked your attached file also and i am ready to do this task for you. Skills:-Codeigniter, JSON, PHP, RESTful, Web Más
I am working as a senior web developer for 5 years. Dont worry, you will never waste your time. I hope full star and credit, but dont want much money. I am sure we will complete our project successfully. Thanks
Hi there, Greetings!! I have 6 years of experience of Graphic Design, Logo Design, Web Design & Web Development,App Development. I can develop websites in different platforms like WORDPRESS, WO-Commerce, E-Commerce Más