cURL
•• What is cURL ?
• cURL is command line tool and library for transferring data with URLs
•• Supported Protocols
• HTTP, HTTPS,FTP,IMAP,POP3,curl supports SSL certificates etc.
•• cURL is an open source project,latest version is 7.55.1. Check out the project at https://github.com/curl/curl
•• Supported Platforms
• Windows,Linux,MacOS etc.
•• Download cURL here https://curl.haxx.se/dlwiz/?type=*
•• cURL Installation
• Windows
* Download the curl zip (As per 32 or 64 bit)
* Extract it anywhere and rename it whatever you want
* Find the curl.exe in "src" folder
* Place curl.exe in the folder you made
* To run curl from the command line
** Right-hand-click on "My Computer" icon
** Select Properties
** Click 'Advanced system settings' link
** Go to tab [Advanced] - 'Environment Variables' button
** Under System variable select 'Path' and Edit button
** Add a semicolon followed by the path to where you placed your curl.exe
(e.g. ;E:\mycurl\curl)
•• Check by typing,in the command prompt
curl www.google.com
•• cURL is useful for dealing with some API's, you will know more after you can work with cURL.
• Linux (Debian/Ubuntu)
* Open SSH Console (Use putty or whatever you have)
* Type sudo apt-get install curl , it will install curl
* Type sudo service apache2 restart,it will restart or webserver (apache)
* Type sudo apt-get install php5-curl (it will install php & integrate with curl)
* Type, type y or yes when prompted to do so
* Finally, sudo service apache2 restart, to again restart the apache
Note: sudo is not mandatory, it depends on your linux system
•• Documentation here https://curl.haxx.se/docs/httpscripting.html
Regards..