A
A
almenovr2020-08-21 18:20:48
PHP
almenovr, 2020-08-21 18:20:48

Whether it is possible to find out somehow the server is available before sending request?

There is an array of 100 objects that the Post should send as a request.
Is it possible to pre-check if the server is available before sending the request.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-08-21
@almenovr

technically possible.
but why? just send a request / handle an error and set a timeout if necessary.
the request is not spit out immediately. connection is established first, and only when it is established, data is sent.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question