Jump to content

curl tutorial


raindropz12

Recommended Posts

There is not much to using php's curl api, and many many curl questions have been answered on this forum in the past.  Did you try a forum search?  Curl can be used for a variety of different purposes, however for the most part, it's simply a protocol library that talks http, ftp, imap, smtp and a laundry list of other common internet protocols, allowing you to automate activities that you might otherwise do manually via a client, be that browser, email, ftp, telnet etc.

 

Most of the time it's used to do things like fetch data from a server that typically expects a browser -- as in submitting a form and then looking at the results.  Curl has lots of built in capabilities that might otherwise require a lot of code, allowing it to handle things like redirects, cookies, and authentication.

 

If you have a specific question feel free to follow up.  It's the kind of thing that is quite frankly, so easy to use, you will be far better off spending your time doing a quick curl based script than you will be scouring the internet looking for a video on how to use it.

Link to comment
Share on other sites

There is not much to using php's curl api, and many many curl questions have been answered on this forum in the past.  Did you try a forum search?  Curl can be used for a variety of different purposes, however for the most part, it's simply a protocol library that talks http, ftp, imap, smtp and a laundry list of other common internet protocols, allowing you to automate activities that you might otherwise do manually via a client, be that browser, email, ftp, telnet etc.

 

Most of the time it's used to do things like fetch data from a server that typically expects a browser -- as in submitting a form and then looking at the results.  Curl has lots of built in capabilities that might otherwise require a lot of code, allowing it to handle things like redirects, cookies, and authentication.

 

If you have a specific question feel free to follow up.  It's the kind of thing that is quite frankly, so easy to use, you will be far better off spending your time doing a quick curl based script than you will be scouring the internet looking for a video on how to use it.

I will post questions later, thank you.

Link to comment
Share on other sites

There is not much to using php's curl api, and many many curl questions have been answered on this forum in the past.  Did you try a forum search?  Curl can be used for a variety of different purposes, however for the most part, it's simply a protocol library that talks http, ftp, imap, smtp and a laundry list of other common internet protocols, allowing you to automate activities that you might otherwise do manually via a client, be that browser, email, ftp, telnet etc.

 

Most of the time it's used to do things like fetch data from a server that typically expects a browser -- as in submitting a form and then looking at the results.  Curl has lots of built in capabilities that might otherwise require a lot of code, allowing it to handle things like redirects, cookies, and authentication.

 

If you have a specific question feel free to follow up.  It's the kind of thing that is quite frankly, so easy to use, you will be far better off spending your time doing a quick curl based script than you will be scouring the internet looking for a video on how to use it.

 

Are you saying that everything could be done with pure PHP too, but cURL (as a library) makes life much easier similar how jQuery makes life easier?

Link to comment
Share on other sites

There is not much to using php's curl api, and many many curl questions have been answered on this forum in the past.  Did you try a forum search?  Curl can be used for a variety of different purposes, however for the most part, it's simply a protocol library that talks http, ftp, imap, smtp and a laundry list of other common internet protocols, allowing you to automate activities that you might otherwise do manually via a client, be that browser, email, ftp, telnet etc.

 

Most of the time it's used to do things like fetch data from a server that typically expects a browser -- as in submitting a form and then looking at the results.  Curl has lots of built in capabilities that might otherwise require a lot of code, allowing it to handle things like redirects, cookies, and authentication.

 

If you have a specific question feel free to follow up.  It's the kind of thing that is quite frankly, so easy to use, you will be far better off spending your time doing a quick curl based script than you will be scouring the internet looking for a video on how to use it.

 

Are you saying that everything could be done with pure PHP too, but cURL (as a library) makes life much easier similar how jQuery makes life easier?

 

Yes exactly. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.