A
A
Alexander2018-03-29 09:04:23
PHP
Alexander, 2018-03-29 09:04:23

How to artificially fail curl?

Good day.
It is necessary to visually check the operation of the application in case of a failed cURL request (for example, timeout). Can anyone suggest the best way to implement this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanovskiy, 2018-03-29
@Sanovskiy

Make some test php files with error generation.
Timeout, for example, make it through sleep ()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question