1
0
mirror of synced 2024-11-22 13:26:08 +03:00

Update RestApi.php

This commit is contained in:
Ilyas Salikhov 2014-06-17 07:32:13 +04:00
parent 3fcfa535de
commit 7345e7f6cd

View File

@ -560,6 +560,8 @@ class RestApi
//curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a variable curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 30s curl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 30s
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
if ($method == 'POST') if ($method == 'POST')
{ {