R
R
romaaa322018-07-03 11:03:43
PHP
romaaa32, 2018-07-03 11:03:43

Curl how to check if the page has loaded?

How to check if the page has loaded when parsing through curl?
The site is sometimes dull and the page may not open.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2018-07-03
@romaaa32

If curl_exec returned control and did not set curl_errno, then the request was completed.
Between the states "request completed" and "page loaded" - the difference between the wheel and the car. It is necessary to clarify what "loaded page" means.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question