0

how do I know if a connection made with cURL has timed out (using the relative option) OR failed in general? I can only output the response body/headers, right?

1 Answer 1

3

You can call curl_error or curl_errno after curl_exec.

http://www.php.net/manual/en/function.curl-error.php

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.