Anyone know how to test and verify CURL functions?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
daytonadman
Forum Newbie
Posts: 5
Joined: Wed Nov 10, 2004 1:53 pm

Anyone know how to test and verify CURL functions?

Post by daytonadman »

I have been trying to execute a script for some time now and don't seem to be making any progress. I believe that curl is not properly installed or configured on my current webhosting servers. Does anyone know a way to test and verify that the curl functions are indeed installed and working properly?

Thanks! 8)
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post by lostboy »

If its mis-installed, then you should get an error...are you using the error checking in curl?
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

yeah, you will get undefined function errors if its not available

if you turned error_reporting off, turn it back on so you can see.
irishmike2004
Forum Contributor
Posts: 119
Joined: Mon Nov 15, 2004 3:54 pm
Location: Lawrence, Kansas

Post by irishmike2004 »

you can always test CURL by typing curl -d "http://somewebsite.com" and it should display a webpage in your terminal window, you then know it works :-)
daytonadman
Forum Newbie
Posts: 5
Joined: Wed Nov 10, 2004 1:53 pm

Post by daytonadman »

I had been getting an internal server error. Very strange, I ran the script this morning and it seems to work. I'll get back to you all, thanks for the responses! 8)
Post Reply