Question

cURL script stopped working on ubuntu 14.04

Hello, I’m using textlocal.com 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!

Subscribe
Share

Thanks for letting us know!

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

What is the contents of the curl command or script you are using? Block out any personal info / ids / passwords obviously.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

This question was answered by @ankushsilhi:

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

View the original comment