You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function actionGetAdvancedExample()
{
//Init curl
$curl = new curl\Curl();
//get http://example.com/
$response = $curl->post('http://www.google.com:81/');
// List of status codes here http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
switch ($curl->responseCode) {
case 'timeout':
//timeout error logic here
break;
case 200:
//success logic here
break;
case 404:
//404 Error logic here
break;
}
}
but its not going into timeout case its going into default case only.
kindly help me on this i tried with both get and post.
regards,
The text was updated successfully, but these errors were encountered:
Hi,
I have tried the example shown in your main page.
but its not going into timeout case its going into default case only.
kindly help me on this i tried with both get and post.
regards,
The text was updated successfully, but these errors were encountered: