FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

cURL - What is it ? And How it works ??

 


samay
Hello everyone,

I was just reading about the cURL from php.net was i didnt understand it properly.

It seems to be very interesting. Can anyone expain me what is it and how it works ???
MrBlueSky
CURL in PHP is an interface to the curl-library. This library gives you functionality to easily retrieve information from servers over the internet. For example retrieving a webpage over HTTP or download a file over FTP. It makes it easy to let your program fill out forms, follow redirects, log in, etc. things you normally do with your browser. You can use CURL to automate all kinds of webbased tasks.

Quote:

curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE and LDAP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks.


See: http://curl.haxx.se/

If you're working under Linux and have curl installed you can get more information on using the command curl from the command prompt in "man curl" (or see: http://www.hmug.org/man/1/curl.php )
samay
Thanks for the information. Now I understand the need for using CAPTCHA code. Can you please give me some good tutotrial ???
MrBlueSky
Using cURL with PHP:

http://www.phpbuilder.com/columns/ian_gilfillan20050525.php3?print_mode=1
http://devzone.zend.com/node/view/id/1081

using the curl-command from the command-line:

http://curl.haxx.se/docs/httpscripting.html

Things like cURL, and even more so Perl's LWP library, are the reason CAPTCHAS are often necessary Very Happy
samay
Thanks for all the information.

MrBlueSky wrote:
Using cURL with PHP:

http://www.phpbuilder.com/columns/ian_gilfillan20050525.php3?print_mode=1
http://devzone.zend.com/node/view/id/1081

using the curl-command from the command-line:

http://curl.haxx.se/docs/httpscripting.html

Things like cURL, and even more so Perl's LWP library, are the reason CAPTCHAS are often necessary Very Happy
manum
hey do u know u cn use curl to make those email address fetching scripts which r being used by many social networking sites nowadays.....try it
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.