GeekInterview.com
Series: Subject: Topic:
Question: 15 of 98

Curl

What is curl? What is the functionality of curl?
Asked by: tallman07 | Member Since Oct-2009 | Asked on: Aug 10th, 2010

View all questions by tallman07

Showing Answers 1 - 3 of 3 Answers
mahmud_uzzaman

Answered On : Aug 25th, 2010

View all answers by mahmud_uzzaman

PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

These functions have been added in PHP 4.0.2.

  
Login to rate this answer.
rajespant

Answered On : Sep 4th, 2010

View all answers by rajespant

cURL is a library which allows you to connect and communicate to many different types of servers with many different types of protocols. Using cURL you can:

  • Implement payment gateways payment notification scripts.
  • Download and upload files from remote servers.
  • Login to other websites and access members only sections.

A typical PHP cURL usage follows the following sequence of steps.

curl_init Initializes the session and returns a cURL handle which can be passed to other cURL functions.

curl_opt This is the main work horse of cURL library. This function is called multiple times and specifies what we want the cURL library to do.

curl_exec Executes a cURL session.

curl_close Closes the current cURL session.

Below are some examples which should make the working of cURL more clearer.

Yes  1 User has rated as useful.
  
Login to rate this answer.
abc

Answered On : Sep 12th, 2011

cURL is a library which allows you to connect and communicate to many different types of servers with many different types of protocols. Using cURL you can:

Implement payment gateways payment notification scripts.
Download and upload files from remote servers.
Login to other websites and access members only sections.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Answered Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.