cURL script stopped working on ubuntu 14.04

Posted June 10, 2016 3.5k views

Hello, I’m using for sending SMS via POST (PHP & cURL).

At first it was not working but then I removed “curl_exec” function from php.ini that was disabling it, which did the trick and everything was working fine but today it has stopped working suddenly. The script just loads and loads and does nothing.

Note- I have now added a timeout so my scripts stops trying after some time so the page doesn’t load forever but it is not sending the SMS from the server.

*I don’t know what is the problem because I have not made any changes to the script and it is working on localhost. *

Please help!


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

This question was answered by @ankushsilhi:

Turns out the was blocking my server’s IP. I contacted them and now everything is working fine.

View the original comment