0

I have a problem with my php curl. I am requesting to a url for like thousands times but after few hundred or thousands request. I am not able to connect to their server again because of that I can't complete the loop of my requests. does any one encounter the same problem? here is the error I have: Couldn't connect to server

1 Answer 1

4

It is most likely their firewall blocking you due to the fact that you're sending too many requests, this is called rate limiting. You will either have to contact them regarding this or find a way of reducing the requests you send.

You don't really have any way of knowing how the server rate limits requests, but I would suggest waiting a second or two between requests and try not to send too many requests at once.

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

1 Comment

You are right, I just contacted them and they have a limit of 34 request per second.

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.