How can we use CURL to get data from web service

I made an example web service using CURL (Client URL Library Functions). By using this example you can create your own (News, weather or any other web service). Here this example, we have two files form.php for client server and curl_response.php for web service server. The curl_response.php file must be hosted in a separate server like http://example.com/curl_response.php and any client server ( e.g. http://nazmul.com/ form.php ) just by using the form.php with username and accesskey can access the web service. You can run this in your localhost also, just open the php.ini file and active the CURL by removing “;” form ;extension=php_curl.dlland save the files and restart your WAMP/XAMP server.

Like this:

LikeLoading...

Related

This entry was posted on Tuesday, July 22nd, 2008 at 10:23 am and is filed under CURL. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.

Post navigation

2 Responses to How can we use CURL to get data from web service

i’m trying to study on curl, spider, seo. but i can’t find any good reference. actually i want to make a search engine. i think works on this topics. it will be very kind of you, if you giving me some reference how i started or some advice. help me about curl by giving some book name or reference if you can.